1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=icelake-server | FileCheck %s
4 @G = global <1 x i1> <i1 true>
7 define void @foo(i32 %x) {
10 ; CHECK-NEXT: movq G@GOTPCREL(%rip), %rax
11 ; CHECK-NEXT: kmovb (%rax), %k0
12 ; CHECK-NEXT: kmovd %k0, %eax
13 ; CHECK-NEXT: andb $1, %al
14 ; CHECK-NEXT: movq G.1@GOTPCREL(%rip), %rcx
15 ; CHECK-NEXT: movb %al, (%rcx)
17 %LGV = load <1 x i1>, ptr @G
18 %E = extractelement <1 x i1> %LGV, i32 %x