Add the testcase from pr23900.
[oota-llvm.git] / test / CodeGen / X86 / 2009-06-03-Win64DisableRedZone.ll
index c628b8affdd9127730eb2c49793f141665bc5b7d..8d387136da9c80ed6005fb246421eaa44095f4e1 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: llvm-as < %s | llc | grep "subq.*\\\$8, \\\%rsp"
-target triple = "x86_64-mingw64"
+; RUN: llc -mtriple=x86_64-mingw32 < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
+; CHECK-NOT: -{{[1-9][0-9]*}}(%rsp)
 
-define x86_fp80 @a(i64 %x) nounwind readnone {
+define x86_64_win64cc x86_fp80 @a(i64 %x) nounwind readnone {
 entry:
-       %conv = sitofp i64 %x to x86_fp80               ; <x86_fp80> [#uses=1]
-       ret x86_fp80 %conv
+        %conv = sitofp i64 %x to x86_fp80               ; <x86_fp80> [#uses=1]
+        ret x86_fp80 %conv
 }
-