mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 18:47:47 +00:00
08a51535d4
These instructions sometimes pop up in LLVM 15, but they never occured in LLVM 14. Implementing them is relatively straightforward: simply generalize the code that already exists for llvm.ICmp interpreting.
13 lines
497 B
LLVM
13 lines
497 B
LLVM
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64--linux"
|
|
|
|
@intToPtrResult = local_unnamed_addr global i8 2
|
|
@ptrToIntResult = local_unnamed_addr global i8 2
|
|
@icmpResult = local_unnamed_addr global i8 2
|
|
@someArray = internal global { i16, i8, i8 } zeroinitializer
|
|
@someArrayPointer = local_unnamed_addr global i8* getelementptr inbounds ({ i16, i8, i8 }, { i16, i8, i8 }* @someArray, i64 0, i32 1)
|
|
|
|
define void @runtime.initAll() local_unnamed_addr {
|
|
ret void
|
|
}
|