[cfe-commits] r172343 - in /cfe/trunk/test/CodeGen: builtins-multipercision.c builtins-multiprecision.c
Michael Gottesman
mgottesman at apple.com
Sat Jan 12 19:44:31 PST 2013
Author: mgottesman
Date: Sat Jan 12 21:44:31 2013
New Revision: 172343
URL: http://llvm.org/viewvc/llvm-project?rev=172343&view=rev
Log:
Fixed spelling of test name: builtins-multipercision.c => builtins-multiprecision.c.
Added:
cfe/trunk/test/CodeGen/builtins-multiprecision.c
- copied, changed from r172342, cfe/trunk/test/CodeGen/builtins-multipercision.c
Removed:
cfe/trunk/test/CodeGen/builtins-multipercision.c
Removed: cfe/trunk/test/CodeGen/builtins-multipercision.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/builtins-multipercision.c?rev=172342&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/builtins-multipercision.c (original)
+++ cfe/trunk/test/CodeGen/builtins-multipercision.c (removed)
@@ -1,74 +0,0 @@
-// RUN: %clang_cc1 -triple "x86_64-unknown-unknown" -emit-llvm -x c %s -o - -O3 | FileCheck %s
-
-unsigned short test_addcs(unsigned short x, unsigned short y,
- unsigned short carryin, unsigned short *z) {
- // CHECK: @test_addcs
- // CHECK: %{{.+}} = {{.*}} call { i16, i1 } @llvm.uadd.with.overflow.i16(i16 %x, i16 %y)
- // CHECK: %{{.+}} = extractvalue { i16, i1 } %{{.+}}, 1
- // CHECK: %{{.+}} = extractvalue { i16, i1 } %{{.+}}, 0
- // CHECK: %{{.+}} = {{.*}} call { i16, i1 } @llvm.uadd.with.overflow.i16(i16 %{{.+}}, i16 %carryin)
- // CHECK: %{{.+}} = extractvalue { i16, i1 } %{{.+}}, 1
- // CHECK: %{{.+}} = extractvalue { i16, i1 } %{{.+}}, 0
- // CHECK: %{{.+}} = or i1 %{{.+}}, %{{.+}}
- // CHECK: %{{.+}} = zext i1 %{{.+}} to i16
- // CHECK: store i16 %{{.+}}, i16* %z, align 2
-
- unsigned short carryout;
- *z = __builtin_addcs(x, y, carryin, &carryout);
-
- return carryout;
-}
-
-unsigned test_addc(unsigned x, unsigned y, unsigned carryin, unsigned *z) {
- // CHECK: @test_addc
- // CHECK: %{{.+}} = {{.*}} call { i32, i1 } @llvm.uadd.with.overflow.i32(i32 %x, i32 %y)
- // CHECK: %{{.+}} = extractvalue { i32, i1 } %{{.+}}, 1
- // CHECK: %{{.+}} = extractvalue { i32, i1 } %{{.+}}, 0
- // CHECK: %{{.+}} = {{.*}} call { i32, i1 } @llvm.uadd.with.overflow.i32(i32 %{{.+}}, i32 %carryin)
- // CHECK: %{{.+}} = extractvalue { i32, i1 } %{{.+}}, 1
- // CHECK: %{{.+}} = extractvalue { i32, i1 } %{{.+}}, 0
- // CHECK: %{{.+}} = or i1 %{{.+}}, %{{.+}}
- // CHECK: %{{.+}} = zext i1 %{{.+}} to i32
- // CHECK: store i32 %{{.+}}, i32* %z, align 4
- unsigned carryout;
- *z = __builtin_addc(x, y, carryin, &carryout);
-
- return carryout;
-}
-
-unsigned long test_addcl(unsigned long x, unsigned long y,
- unsigned long carryin, unsigned long *z) {
- // CHECK: @test_addcl
- // CHECK: %{{.+}} = {{.*}} call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %x, i64 %y)
- // CHECK: %{{.+}} = extractvalue { i64, i1 } %{{.+}}, 1
- // CHECK: %{{.+}} = extractvalue { i64, i1 } %{{.+}}, 0
- // CHECK: %{{.+}} = {{.*}} call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %{{.+}}, i64 %carryin)
- // CHECK: %{{.+}} = extractvalue { i64, i1 } %{{.+}}, 1
- // CHECK: %{{.+}} = extractvalue { i64, i1 } %{{.+}}, 0
- // CHECK: %{{.+}} = or i1 %{{.+}}, %{{.+}}
- // CHECK: %{{.+}} = zext i1 %{{.+}} to i64
- // CHECK: store i64 %{{.+}}, i64* %z, align 8
- unsigned long carryout;
- *z = __builtin_addcl(x, y, carryin, &carryout);
-
- return carryout;
-}
-
-unsigned long long test_addcll(unsigned long long x, unsigned long long y,
- unsigned long long carryin,
- unsigned long long *z) {
- // CHECK: @test_addcll
- // CHECK: %{{.+}} = {{.*}} call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %x, i64 %y)
- // CHECK: %{{.+}} = extractvalue { i64, i1 } %{{.+}}, 1
- // CHECK: %{{.+}} = extractvalue { i64, i1 } %{{.+}}, 0
- // CHECK: %{{.+}} = {{.*}} call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %{{.+}}, i64 %carryin)
- // CHECK: %{{.+}} = extractvalue { i64, i1 } %{{.+}}, 1
- // CHECK: %{{.+}} = extractvalue { i64, i1 } %{{.+}}, 0
- // CHECK: %{{.+}} = or i1 %{{.+}}, %{{.+}}
- // CHECK: %{{.+}} = zext i1 %{{.+}} to i64
- // CHECK: store i64 %{{.+}}, i64* %z, align 8
- unsigned long long carryout;
- *z = __builtin_addcll(x, y, carryin, &carryout);
-
- return carryout;
-}
Copied: cfe/trunk/test/CodeGen/builtins-multiprecision.c (from r172342, cfe/trunk/test/CodeGen/builtins-multipercision.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/builtins-multiprecision.c?p2=cfe/trunk/test/CodeGen/builtins-multiprecision.c&p1=cfe/trunk/test/CodeGen/builtins-multipercision.c&r1=172342&r2=172343&rev=172343&view=diff
==============================================================================
(empty)
More information about the cfe-commits
mailing list