llvm.org GIT mirror llvm / 6859e58
[WebAssembly] Update target datalayout strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247187 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 5 years ago
10 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
11
22 ; Test that basic call operations assemble as expected.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 declare i32 @i32_nullary()
11
22 ; Test that basic functions assemble as expected.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 ; CHECK-LABEL: (func $f0{{$}}
11
22 ; Test that globals assemble as expected.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 ; CHECK-NOT: llvm.used
11
22 ; Test that the `.globl` directive is commented out.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 ; CHECK-NOT: globl
11
22 ; Test that extending loads are assembled properly.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 ; CHECK-LABEL: (func $sext_i8_i32
11
22 ; Test that i1 extending loads and truncating stores are assembled properly.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 ; CHECK-LABEL: (func $load_unsigned_i1_i32
11
22 ; Test that basic loads are assembled properly.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 ; CHECK-LABEL: (func $ldi32
44
55 ; Test that phis are lowered.
66
7 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
7 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
88 target triple = "wasm32-unknown-unknown"
99
1010 ; Basic phi triangle.
11
22 ; Test that truncating stores are assembled properly.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 ; CHECK-LABEL: (func $trunc_i8_i32
11
22 ; Test that basic stores are assembled properly.
33
4 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
4 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
77 ; CHECK-LABEL: (func $sti32