github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/transform/testdata/stringequal.out.ll (about) 1 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" 2 target triple = "armv7m-none-eabi" 3 4 @zeroString = constant [0 x i8] zeroinitializer 5 6 declare i1 @runtime.stringEqual(ptr, i32, ptr, i32, ptr) 7 8 define i1 @main.stringCompareEqualConstantZero(ptr %s1.data, i32 %s1.len, ptr %context) { 9 entry: 10 %0 = icmp eq i32 %s1.len, 0 11 ret i1 %0 12 } 13 14 define i1 @main.stringCompareUnequalConstantZero(ptr %s1.data, i32 %s1.len, ptr %context) { 15 entry: 16 %0 = icmp eq i32 %s1.len, 0 17 %1 = xor i1 %0, true 18 ret i1 %1 19 }