diff options
| author | Thomas Lively <tlively@google.com> | 2018-09-04 21:26:17 +0000 |
|---|---|---|
| committer | Thomas Lively <tlively@google.com> | 2018-09-04 21:26:17 +0000 |
| commit | 1b55b2be7ee4c5f992447ef6ca9856b8224692ec (patch) | |
| tree | 6edcb5b02be2e92ad141c29259cebe9e7f4e7b6b /llvm/test/CodeGen/WebAssembly | |
| parent | 0f70f86ce08f2535cb1cd9bffe159c55171f531d (diff) | |
| download | bcm5719-llvm-1b55b2be7ee4c5f992447ef6ca9856b8224692ec.tar.gz bcm5719-llvm-1b55b2be7ee4c5f992447ef6ca9856b8224692ec.zip | |
[WebAssembly][NFC] Fix formatting and tests
Summary: Small fixes
Reviewers: aheejin, dschuff
Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D51656
llvm-svn: 341411
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly')
| -rw-r--r-- | llvm/test/CodeGen/WebAssembly/simd.ll | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/simd.ll b/llvm/test/CodeGen/WebAssembly/simd.ll index 5cd1fd37e73..0971d375ff7 100644 --- a/llvm/test/CodeGen/WebAssembly/simd.ll +++ b/llvm/test/CodeGen/WebAssembly/simd.ll @@ -37,7 +37,7 @@ define <16 x i8> @splat_v16i8(i8 %x) { ret <16 x i8> %res } -; CHECK-LABEL: const_splat_v16i8 +; CHECK-LABEL: const_splat_v16i8: ; SIMD128; i8x16.splat define <16 x i8> @const_splat_v16i8() { ret <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, @@ -267,7 +267,7 @@ define <4 x i32> @splat_v4i32(i32 %x) { ret <4 x i32> %res } -; CHECK-LABEL: const_splat_v4i32 +; CHECK-LABEL: const_splat_v4i32: ; SIMD128; i32x4.splat define <4 x i32> @const_splat_v4i32() { ret <4 x i32> <i32 42, i32 42, i32 42, i32 42> @@ -340,6 +340,12 @@ define <2 x i64> @splat_v2i64(i64 %x) { ret <2 x i64> %res } +; CHECK-LABEL: const_splat_v2i64: +; SIMD128; i64x2.splat +define <2 x i64> @const_splat_v2i64() { + ret <2 x i64> <i64 42, i64 42> +} + ; CHECK-LABEL: extract_v2i64: ; NO-SIMD128-NOT: i64x2 ; SIMD128-VM-NOT: i64x2 @@ -364,10 +370,6 @@ define <2 x i64> @replace_v2i64(<2 x i64> %v, i64 %x) { ret <2 x i64> %res } -define <2 x i64> @const_splat_v2i64() { - ret <2 x i64> <i64 42, i64 42> -} - ; CHECK-LABEL: build_v2i64: ; NO-SIMD128-NOT: i64x2 ; SIMD128-VM-NOT: i64x2 |

