]> granicus.if.org Git - clang/commitdiff
Fixes lit test that doesn't fail on windows
authorWarren Hunt <whunt@google.com>
Sat, 2 Nov 2013 00:12:15 +0000 (00:12 +0000)
committerWarren Hunt <whunt@google.com>
Sat, 2 Nov 2013 00:12:15 +0000 (00:12 +0000)
long in linux 64 is 64 bits but is always 32 bits on windows.  The lit test was modified
to use long long instead of long and check for 64-bit mangling.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193901 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/builtins.cpp

index 09f1b5e5a417eb572e9982400c43e67721d0d867..7aca6617f5ae41e92cc7ada0a1f05fb93b453a72 100644 (file)
@@ -17,13 +17,13 @@ S *addressof(bool b, S &s, S &t) {
 }
 
 extern "C" int __builtin_abs(int); // #1
-long __builtin_abs(long);          // #2
+long long __builtin_abs(long long);          // #2
 extern "C" int __builtin_abs(int); // #3
 
 int x = __builtin_abs(-2);
 // CHECK: entry:
 // CHECK-NEXT:  store i32 2, i32* @x, align 4
 
-long y = __builtin_abs(-2l);
+long y = __builtin_abs(-2ll);
 // CHECK: entry:
-// CHECK-NEXT:  %call = call i32 @_Z13__builtin_absl(i32 -2)
+// CHECK-NEXT:  %call = call i64 @_Z13__builtin_absx(i64 -2)