1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=i386-- -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
4 # Check that we select a the x86.flags.read.u32 intrinsic into a RDFLAGS
5 # instruction. Also check that we constrain the register class of the COPY to
9 define void @read_flags() { ret void }
10 ; CHECK-LABEL: name: read_flags
12 ; CHECK: [[RDFLAGS32_:%[0-9]+]]:gr32 = RDFLAGS32 implicit-def $esp, implicit $esp
13 ; CHECK: $eax = COPY [[RDFLAGS32_]]
22 - { id: 0, class: gpr }
26 %0(s32) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.x86.flags.read.u32)