Move & restructure test per review.
[oota-llvm.git] / test / CodeGen / X86 / fast-cc-pass-in-regs.ll
index 43f6493941c8f16c99b69cf64e385f95dad9f90c..c8621a7780bd8cd0152fc48f458a37eea851d5d2 100644 (file)
@@ -1,14 +1,15 @@
-; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -enable-x86-fastcc  | grep 'mov %EDX, 1'
-
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {mov     EDX, 1}
 ; check that fastcc is passing stuff in regs.
 
-declare fastcc long %callee(long)
+declare x86_fastcallcc i64 @callee(i64)
 
-long %caller() {
-       %X = call fastcc long %callee(long 4294967299)  ;; (1ULL << 32) + 3
-       ret long %X
+define i64 @caller() {
+        %X = call x86_fastcallcc  i64 @callee( i64 4294967299 )          ; <i64> [#uses=1]
+        ret i64 %X
 }
 
-fastcc long %caller2(long %X) {
-       ret long %X
+define x86_fastcallcc i64 @caller2(i64 %X) {
+        ret i64 %X
 }
+