summaryrefslogtreecommitdiff
path: root/test/CodeGen/CellSPU
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-04-14 18:19:18 +0000
committerDan Gohman <gohman@apple.com>2008-04-14 18:19:18 +0000
commit63f7ba085f2ce561663656dcc81ef81ae9654358 (patch)
tree237a3d913686453c54b7d27844db2a827c96e0e8 /test/CodeGen/CellSPU
parent0a6ee6d1316831c3a5e5e3e0a229eb269795891a (diff)
downloadllvm-63f7ba085f2ce561663656dcc81ef81ae9654358.tar.gz
llvm-63f7ba085f2ce561663656dcc81ef81ae9654358.tar.bz2
llvm-63f7ba085f2ce561663656dcc81ef81ae9654358.tar.xz
Upgrade these tests for the current intrinsic prototypes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/CellSPU')
-rw-r--r--test/CodeGen/CellSPU/ctpop.ll12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/CellSPU/ctpop.ll b/test/CodeGen/CellSPU/ctpop.ll
index 79bb611fe2..3c7ee7aeea 100644
--- a/test/CodeGen/CellSPU/ctpop.ll
+++ b/test/CodeGen/CellSPU/ctpop.ll
@@ -6,19 +6,19 @@
target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128"
target triple = "spu"
-declare i32 @llvm.ctpop.i8(i8)
-declare i32 @llvm.ctpop.i16(i16)
+declare i8 @llvm.ctpop.i8(i8)
+declare i16 @llvm.ctpop.i16(i16)
declare i32 @llvm.ctpop.i32(i32)
define i32 @test_i8(i8 %X) {
- call i32 @llvm.ctpop.i8(i8 %X)
- %Y = bitcast i32 %1 to i32
+ call i8 @llvm.ctpop.i8(i8 %X)
+ %Y = zext i8 %1 to i32
ret i32 %Y
}
define i32 @test_i16(i16 %X) {
- call i32 @llvm.ctpop.i16(i16 %X)
- %Y = bitcast i32 %1 to i32
+ call i16 @llvm.ctpop.i16(i16 %X)
+ %Y = zext i16 %1 to i32
ret i32 %Y
}