1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll
Chris Lattner c4a880e03c Fix gcc.c-torture/compile/920520-1.c by inserting bitconverts
for strange asm conditions earlier.  In this case, we have a
double being passed in an integer reg class.  Convert to like
sized integer register so that we allocate the right number 
for the class (two i32's for the f64 in this case).

llvm-svn: 57862
2008-10-21 00:45:36 +00:00

12 lines
233 B
LLVM

; RUN: llvm-as < %s | llc -march=x86
; RUN: llvm-as < %s | llc -march=x86-64
; from gcc.c-torture/compile/920520-1.c
define i32 @g() nounwind {
entry:
call void asm sideeffect "$0", "r"(double 1.500000e+00) nounwind
ret i32 0
}