diff options
author | ed <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 3277b69d734b9c90b44ebde4ede005717e2c3b2e (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/Bitcode | |
download | FreeBSD-src-3277b69d734b9c90b44ebde4ede005717e2c3b2e.zip FreeBSD-src-3277b69d734b9c90b44ebde4ede005717e2c3b2e.tar.gz |
Import LLVM, at r72732.
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 0000000..6df8711 --- /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 0000000..5f9bcd5 --- /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 0000000..9de756b --- /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 0000000..f200589 --- /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 0000000..04cb131 --- /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 0000000..fb509b8 --- /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 0000000..b0bea16 --- /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 0000000..402cbe1 --- /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 0000000..093d821 --- /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 0000000..74d1826 --- /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 0000000..25a35b6 --- /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 0000000..719d529 --- /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 0000000..b9d711c --- /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 0000000..7c1b7ed --- /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 0000000..5829edb --- /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 0000000..832c39e --- /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 0000000..f4e5d54 --- /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 0000000..4fb829c --- /dev/null +++ b/test/Bitcode/sse2_unpck_pd.ll.bc |