1 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
2 target triple = "i686-pc-win32"
4 ; Check that pushf/popf intrinsics on win32 don't need a frame pointer.
5 ; FIXME: These can't be autogenerated due to the fastcall function name label,
8 declare i32 @llvm.x86.flags.read.u32()
9 declare void @llvm.x86.flags.write.u32(i32)
11 define i32 @read_flags() {
13 %flags = call i32 @llvm.x86.flags.read.u32()
17 ; CHECK-LABEL: _read_flags:
19 ; CHECK-NEXT: popl %eax
22 define x86_fastcallcc void @write_flags(i32 inreg %arg) {
24 call void @llvm.x86.flags.write.u32(i32 %arg)
28 ; CHECK-LABEL: @write_flags@4: