Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1449)

Unified Diff: test/CodeGen/JS/insertelement-chains.ll

Issue 1692803002: Remove Emscripten support (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-llvm.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/CodeGen/JS/globals.ll ('k') | test/CodeGen/JS/invariant-intrinsics.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/CodeGen/JS/insertelement-chains.ll
diff --git a/test/CodeGen/JS/insertelement-chains.ll b/test/CodeGen/JS/insertelement-chains.ll
deleted file mode 100644
index cd69becb4fdda99e041ce7097ca0b142edddaaa8..0000000000000000000000000000000000000000
--- a/test/CodeGen/JS/insertelement-chains.ll
+++ /dev/null
@@ -1,99 +0,0 @@
-; RUN: llc -emscripten-precise-f32 < %s | FileCheck %s
-
-target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-p:32:32:32-v128:32:128-n32-S128"
-target triple = "asmjs-unknown-emscripten"
-
-; Basic constructor.
-
-; CHECK: function _test0($x,$y,$z,$w) {
-; CHECK: $d = SIMD_float32x4($x, $y, $z, $w)
-; CHECK: }
-define <4 x float> @test0(float %x, float %y, float %z, float %w) {
- %a = insertelement <4 x float> undef, float %x, i32 0
- %b = insertelement <4 x float> %a, float %y, i32 1
- %c = insertelement <4 x float> %b, float %z, i32 2
- %d = insertelement <4 x float> %c, float %w, i32 3
- ret <4 x float> %d
-}
-
-; Same as test0 but elements inserted in a different order.
-
-; CHECK: function _test1($x,$y,$z,$w) {
-; CHECK: $d = SIMD_float32x4($x, $y, $z, $w)
-; CHECK: }
-define <4 x float> @test1(float %x, float %y, float %z, float %w) {
- %a = insertelement <4 x float> undef, float %w, i32 3
- %b = insertelement <4 x float> %a, float %y, i32 1
- %c = insertelement <4 x float> %b, float %z, i32 2
- %d = insertelement <4 x float> %c, float %x, i32 0
- ret <4 x float> %d
-}
-
-; Overwriting elements.
-
-; CHECK: function _test2($x,$y,$z,$w) {
-; CHECK: $h = SIMD_float32x4($x, $y, $z, $w)
-; CHECK: }
-define <4 x float> @test2(float %x, float %y, float %z, float %w) {
- %a = insertelement <4 x float> undef, float %z, i32 0
- %b = insertelement <4 x float> %a, float %x, i32 0
- %c = insertelement <4 x float> %b, float %w, i32 1
- %d = insertelement <4 x float> %c, float %y, i32 1
- %e = insertelement <4 x float> %d, float %x, i32 2
- %f = insertelement <4 x float> %e, float %z, i32 2
- %g = insertelement <4 x float> %f, float %y, i32 3
- %h = insertelement <4 x float> %g, float %w, i32 3
- ret <4 x float> %h
-}
-
-; Basic splat testcase.
-
-; CHECK: function _test3($x) {
-; CHECK: $d = SIMD_float32x4_splat($x)
-; CHECK: }
-define <4 x float> @test3(float %x) {
- %a = insertelement <4 x float> undef, float %x, i32 0
- %b = insertelement <4 x float> %a, float %x, i32 1
- %c = insertelement <4 x float> %b, float %x, i32 2
- %d = insertelement <4 x float> %c, float %x, i32 3
- ret <4 x float> %d
-}
-
-; Same as test3 but elements inserted in a different order.
-
-; CHECK: function _test4($x) {
-; CHECK: $d = SIMD_float32x4_splat($x)
-; CHECK: }
-define <4 x float> @test4(float %x) {
- %a = insertelement <4 x float> undef, float %x, i32 3
- %b = insertelement <4 x float> %a, float %x, i32 1
- %c = insertelement <4 x float> %b, float %x, i32 2
- %d = insertelement <4 x float> %c, float %x, i32 0
- ret <4 x float> %d
-}
-
-; Insert chain.
-
-; CHECK: function _test5($x,$y,$z,$w) {
-; CHECK: $f = SIMD_float32x4_withZ(SIMD_float32x4_withY(SIMD_float32x4_withX(SIMD_float32x4_splat(Math_fround(0)),$x),$y),$z)
-; CHECK: }
-define <4 x float> @test5(float %x, float %y, float %z, float %w) {
- %a = insertelement <4 x float> undef, float %z, i32 0
- %b = insertelement <4 x float> %a, float %x, i32 0
- %c = insertelement <4 x float> %b, float %w, i32 1
- %d = insertelement <4 x float> %c, float %y, i32 1
- %e = insertelement <4 x float> %d, float %x, i32 2
- %f = insertelement <4 x float> %e, float %z, i32 2
- ret <4 x float> %f
-}
-
-; Splat via insert+shuffle.
-
-; CHECK: function _test6($x) {
-; CHECK: $b = SIMD_float32x4_splat($x)
-; CHECK: }
-define <4 x float> @test6(float %x) {
- %a = insertelement <4 x float> undef, float %x, i32 0
- %b = shufflevector <4 x float> %a, <4 x float> undef, <4 x i32> zeroinitializer
- ret <4 x float> %b
-}
« no previous file with comments | « test/CodeGen/JS/globals.ll ('k') | test/CodeGen/JS/invariant-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698