1 ; RUN: llc -mtriple=i386-unknown-linux-gnu < %s | FileCheck %s 2 3 @c = external global [1 x i32], align 4 4 5 ; CHECK-LABEL: fn1 6 ; CHECK: leal c(%eax), %ecx 7 define void @fn1(i32 %k) { 8 %g = getelementptr inbounds [1 x i32], [1 x i32]* @c, i32 0, i32 %k 9 %cmp = icmp ne i32* undef, %g 10 %z = zext i1 %cmp to i32 11 store i32 %z, i32* undef, align 4 12 %cmp2 = icmp eq i32* %g, null 13 br i1 %cmp2, label %u, label %r 14 15 u: 16 unreachable 17 18 r: 19 ret void 20 } 21