diff options
Diffstat (limited to 'test/Bitcode')
-rw-r--r-- | test/Bitcode/2006-12-11-Cast-ConstExpr.ll | 10 | ||||
-rw-r--r-- | test/Bitcode/AutoUpgradeIntrinsics.ll | 10 | ||||
-rw-r--r-- | test/Bitcode/AutoUpgradeIntrinsics.ll.bc | bin | 0 -> 800 bytes | |||
-rw-r--r-- | test/Bitcode/dg.exp | 3 | ||||
-rw-r--r-- | test/Bitcode/extractelement.ll | 8 | ||||
-rw-r--r-- | test/Bitcode/memcpy.ll | 21 | ||||
-rw-r--r-- | test/Bitcode/sse2_loadl_pd.ll | 2 | ||||
-rw-r--r-- | test/Bitcode/sse2_loadl_pd.ll.bc | bin | 0 -> 532 bytes | |||
-rw-r--r-- | test/Bitcode/sse2_movl_dq.ll | 2 | ||||
-rw-r--r-- | test/Bitcode/sse2_movl_dq.ll.bc | bin | 0 -> 480 bytes | |||
-rw-r--r-- | test/Bitcode/sse2_movs_d.ll | 2 | ||||
-rw-r--r-- | test/Bitcode/sse2_movs_d.ll.bc | bin | 0 -> 476 bytes | |||
-rw-r--r-- | test/Bitcode/sse2_punpck_qdq.ll | 3 | ||||
-rw-r--r-- | test/Bitcode/sse2_punpck_qdq.ll.bc | bin | 0 -> 576 bytes | |||
-rw-r--r-- | test/Bitcode/sse2_shuf_pd.ll | 2 | ||||
-rw-r--r-- | test/Bitcode/sse2_shuf_pd.ll.bc | bin | 0 -> 584 bytes | |||
-rw-r--r-- | test/Bitcode/sse2_unpck_pd.ll | 3 | ||||
-rw-r--r-- | test/Bitcode/sse2_unpck_pd.ll.bc | bin | 0 -> 572 bytes |
18 files changed, 66 insertions, 0 deletions
diff --git a/test/Bitcode/2006-12-11-Cast-ConstExpr.ll b/test/Bitcode/2006-12-11-Cast-ConstExpr.ll new file mode 100644 index 0000000000000..6df8711fe7088 --- /dev/null +++ b/test/Bitcode/2006-12-11-Cast-ConstExpr.ll @@ -0,0 +1,10 @@ +; This test ensures that we get a bitcast constant expression in and out, +; not a sitofp constant expression. +; RUN: llvm-as < %s | llvm-dis | \ +; RUN: grep {bitcast (} + +@G = external global i32 + +define float @tryit(i32 %A) { + ret float bitcast( i32 ptrtoint (i32* @G to i32) to float) +} diff --git a/test/Bitcode/AutoUpgradeIntrinsics.ll b/test/Bitcode/AutoUpgradeIntrinsics.ll new file mode 100644 index 0000000000000..5f9bcd56f1927 --- /dev/null +++ b/test/Bitcode/AutoUpgradeIntrinsics.ll @@ -0,0 +1,10 @@ +; This isn't really an assembly file. It just runs test on bitcode to ensure +; it is auto-upgraded. +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.ct} +; RUN: llvm-dis < %s.bc | \ +; RUN: not grep {llvm\\.part\\.set\\.i\[0-9\]*\\.i\[0-9\]*\\.i\[0-9\]*} +; RUN: llvm-dis < %s.bc | \ +; RUN: not grep {llvm\\.part\\.select\\.i\[0-9\]*\\.i\[0-9\]*} +; RUN: llvm-dis < %s.bc | \ +; RUN: not grep {llvm\\.bswap\\.i\[0-9\]*\\.i\[0-9\]*} + diff --git a/test/Bitcode/AutoUpgradeIntrinsics.ll.bc b/test/Bitcode/AutoUpgradeIntrinsics.ll.bc Binary files differnew file mode 100644 index 0000000000000..9de756ba68591 --- /dev/null +++ b/test/Bitcode/AutoUpgradeIntrinsics.ll.bc diff --git a/test/Bitcode/dg.exp b/test/Bitcode/dg.exp new file mode 100644 index 0000000000000..f2005891a59a8 --- /dev/null +++ b/test/Bitcode/dg.exp @@ -0,0 +1,3 @@ +load_lib llvm.exp + +RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] diff --git a/test/Bitcode/extractelement.ll b/test/Bitcode/extractelement.ll new file mode 100644 index 0000000000000..04cb131f6e7f7 --- /dev/null +++ b/test/Bitcode/extractelement.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -constprop | llvm-dis +; PR3465 + +define double @test() { + %tmp24 = extractelement <2 x double> bitcast (<1 x i128> < i128 85070591730234615870450834276742070272 > to <2 x double>), i32 0 + ret double %tmp24 +} + diff --git a/test/Bitcode/memcpy.ll b/test/Bitcode/memcpy.ll new file mode 100644 index 0000000000000..fb509b8e8eeee --- /dev/null +++ b/test/Bitcode/memcpy.ll @@ -0,0 +1,21 @@ +; RUN: llvm-as %s -o /dev/null -f + +define void @test(i32* %P, i32* %Q) { +entry: + %tmp.1 = bitcast i32* %P to i8* ; <i8*> [#uses=3] + %tmp.3 = bitcast i32* %Q to i8* ; <i8*> [#uses=4] + tail call void @llvm.memcpy.i32( i8* %tmp.1, i8* %tmp.3, i32 100000, i32 1 ) + tail call void @llvm.memcpy.i64( i8* %tmp.1, i8* %tmp.3, i64 100000, i32 1 ) + tail call void @llvm.memset.i32( i8* %tmp.3, i8 14, i32 10000, i32 0 ) + tail call void @llvm.memmove.i32( i8* %tmp.1, i8* %tmp.3, i32 123124, i32 1 ) + ret void +} + +declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) + +declare void @llvm.memcpy.i64(i8*, i8*, i64, i32) + +declare void @llvm.memset.i32(i8*, i8, i32, i32) + +declare void @llvm.memmove.i32(i8*, i8*, i32, i32) + diff --git a/test/Bitcode/sse2_loadl_pd.ll b/test/Bitcode/sse2_loadl_pd.ll new file mode 100644 index 0000000000000..b0bea16a33855 --- /dev/null +++ b/test/Bitcode/sse2_loadl_pd.ll @@ -0,0 +1,2 @@ +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.loadl.pd} +; RUN: llvm-dis < %s.bc | grep shufflevector diff --git a/test/Bitcode/sse2_loadl_pd.ll.bc b/test/Bitcode/sse2_loadl_pd.ll.bc Binary files differnew file mode 100644 index 0000000000000..402cbe192ddab --- /dev/null +++ b/test/Bitcode/sse2_loadl_pd.ll.bc diff --git a/test/Bitcode/sse2_movl_dq.ll b/test/Bitcode/sse2_movl_dq.ll new file mode 100644 index 0000000000000..093d8213ed4a6 --- /dev/null +++ b/test/Bitcode/sse2_movl_dq.ll @@ -0,0 +1,2 @@ +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.movl.dq} +; RUN: llvm-dis < %s.bc | grep shufflevector diff --git a/test/Bitcode/sse2_movl_dq.ll.bc b/test/Bitcode/sse2_movl_dq.ll.bc Binary files differnew file mode 100644 index 0000000000000..74d1826d2e1ce --- /dev/null +++ b/test/Bitcode/sse2_movl_dq.ll.bc diff --git a/test/Bitcode/sse2_movs_d.ll b/test/Bitcode/sse2_movs_d.ll new file mode 100644 index 0000000000000..25a35b6455c68 --- /dev/null +++ b/test/Bitcode/sse2_movs_d.ll @@ -0,0 +1,2 @@ +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.movs.d} +; RUN: llvm-dis < %s.bc | grep shufflevector diff --git a/test/Bitcode/sse2_movs_d.ll.bc b/test/Bitcode/sse2_movs_d.ll.bc Binary files differnew file mode 100644 index 0000000000000..719d5294e16de --- /dev/null +++ b/test/Bitcode/sse2_movs_d.ll.bc diff --git a/test/Bitcode/sse2_punpck_qdq.ll b/test/Bitcode/sse2_punpck_qdq.ll new file mode 100644 index 0000000000000..b9d711c108449 --- /dev/null +++ b/test/Bitcode/sse2_punpck_qdq.ll @@ -0,0 +1,3 @@ +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.punpckh.qdq} +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.punpckl.qdq} +; RUN: llvm-dis < %s.bc | grep shufflevector diff --git a/test/Bitcode/sse2_punpck_qdq.ll.bc b/test/Bitcode/sse2_punpck_qdq.ll.bc Binary files differnew file mode 100644 index 0000000000000..7c1b7ed0ca6b7 --- /dev/null +++ b/test/Bitcode/sse2_punpck_qdq.ll.bc diff --git a/test/Bitcode/sse2_shuf_pd.ll b/test/Bitcode/sse2_shuf_pd.ll new file mode 100644 index 0000000000000..5829edbc256ea --- /dev/null +++ b/test/Bitcode/sse2_shuf_pd.ll @@ -0,0 +1,2 @@ +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.shuf.pd} +; RUN: llvm-dis < %s.bc | grep shufflevector diff --git a/test/Bitcode/sse2_shuf_pd.ll.bc b/test/Bitcode/sse2_shuf_pd.ll.bc Binary files differnew file mode 100644 index 0000000000000..832c39e103f37 --- /dev/null +++ b/test/Bitcode/sse2_shuf_pd.ll.bc diff --git a/test/Bitcode/sse2_unpck_pd.ll b/test/Bitcode/sse2_unpck_pd.ll new file mode 100644 index 0000000000000..f4e5d540684e6 --- /dev/null +++ b/test/Bitcode/sse2_unpck_pd.ll @@ -0,0 +1,3 @@ +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.unpckh.pd} +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.unpckl.pd} +; RUN: llvm-dis < %s.bc | grep shufflevector diff --git a/test/Bitcode/sse2_unpck_pd.ll.bc b/test/Bitcode/sse2_unpck_pd.ll.bc Binary files differnew file mode 100644 index 0000000000000..4fb829cbf712b --- /dev/null +++ b/test/Bitcode/sse2_unpck_pd.ll.bc |