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