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
}
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)