llvm.org GIT mirror llvm / 4cef7db
remove tests for removed intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75433 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
2 changed file(s) with 0 addition(s) and 49 deletion(s). Raw diff Collapse all Expand all
+0
-32
test/CodeGen/Generic/bit-intrinsics.ll less more
None ; Make sure this testcase is supported by all code generators. Either the
1 ; intrinsic is supported natively or IntrinsicLowering provides it.
2 ; RUN: llvm-as < %s > %t.bc
3 ; RUN: lli --force-interpreter=true %t.bc
4
5 declare i32 @llvm.part.set.i32.i32(i32 %x, i32 %rep, i32 %hi, i32 %lo)
6 declare i16 @llvm.part.set.i16.i16(i16 %x, i16 %rep, i32 %hi, i32 %lo)
7 define i32 @test_part_set(i32 %A, i16 %B) {
8 %a = call i32 @llvm.part.set.i32.i32(i32 %A, i32 27, i32 8, i32 0)
9 %b = call i16 @llvm.part.set.i16.i16(i16 %B, i16 27, i32 8, i32 0)
10 %c = zext i16 %b to i32
11 %d = add i32 %a, %c
12 ret i32 %d
13 }
14
15 declare i32 @llvm.part.select.i32(i32 %x, i32 %hi, i32 %lo)
16 declare i16 @llvm.part.select.i16(i16 %x, i32 %hi, i32 %lo)
17 define i32 @test_part_select(i32 %A, i16 %B) {
18 %a = call i32 @llvm.part.select.i32(i32 %A, i32 8, i32 0)
19 %b = call i16 @llvm.part.select.i16(i16 %B, i32 8, i32 0)
20 %c = zext i16 %b to i32
21 %d = add i32 %a, %c
22 ret i32 %d
23 }
24
25 define i32 @main(i32 %argc, i8** %argv) {
26 %a = call i32 @test_part_set(i32 23, i16 57)
27 %b = call i32 @test_part_select(i32 23, i16 57)
28 %c = add i32 %a, %b
29 %d = urem i32 %c, 1
30 ret i32 %d
31 }
+0
-17
test/ExecutionEngine/2009-01-29-PartSet.ll less more
None ; RUN: llvm-as %s -o - | lli -force-interpreter | grep FF8F
1
2 ; ModuleID = 'partset.c.bc'
3 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
4 target triple = "x86_64-unknown-linux-gnu"
5 @.str = internal constant [4 x i8] c"%X\0A\00" ; <[4 x i8]*> [#uses=1]
6
7 define i32 @main() nounwind {
8 entry:
9 %part_set = tail call i32 @llvm.part.set.i32.i8( i32 65535, i8 1, i32 7, i32 4 ) ; [#uses=1]
10 %tmp4 = tail call i32 (i8*, ...)* @printf( i8* noalias getelementptr ([4 x i8]* @.str, i32 0, i64 0), i32 %part_set ) nounwind ; [#uses=0]
11 ret i32 0
12 }
13
14 declare i32 @llvm.part.set.i32.i8(i32, i8, i32, i32) nounwind readnone
15
16 declare i32 @printf(i8*, ...) nounwind