diff options
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/select.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/select.ll | 48 |
1 files changed, 16 insertions, 32 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/select.ll b/llvm/test/CodeGen/WebAssembly/select.ll index 99b8d45d8e2..daa934f4484 100644 --- a/llvm/test/CodeGen/WebAssembly/select.ll +++ b/llvm/test/CodeGen/WebAssembly/select.ll @@ -7,8 +7,7 @@ target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" target triple = "wasm32-unknown-unknown" ; CHECK-LABEL: select_i32_bool: -; CHECK-NEXT: .param i32, i32, i32{{$}} -; CHECK-NEXT: .result i32{{$}} +; CHECK-NEXT: .functype select_i32_bool (i32, i32, i32) -> (i32){{$}} ; CHECK-NEXT: i32.select $push0=, $1, $2, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define i32 @select_i32_bool(i1 zeroext %a, i32 %b, i32 %c) { @@ -17,8 +16,7 @@ define i32 @select_i32_bool(i1 zeroext %a, i32 %b, i32 %c) { } ; CHECK-LABEL: select_i32_bool_nozext: -; CHECK-NEXT: .param i32, i32, i32{{$}} -; CHECK-NEXT: .result i32{{$}} +; CHECK-NEXT: .functype select_i32_bool_nozext (i32, i32, i32) -> (i32){{$}} ; SLOW-NEXT: i32.select $push0=, $1, $2, $0{{$}} ; SLOW-NEXT: return $pop0{{$}} define i32 @select_i32_bool_nozext(i1 %a, i32 %b, i32 %c) { @@ -27,8 +25,7 @@ define i32 @select_i32_bool_nozext(i1 %a, i32 %b, i32 %c) { } ; CHECK-LABEL: select_i32_eq: -; CHECK-NEXT: .param i32, i32, i32{{$}} -; CHECK-NEXT: .result i32{{$}} +; CHECK-NEXT: .functype select_i32_eq (i32, i32, i32) -> (i32){{$}} ; CHECK-NEXT: i32.select $push0=, $2, $1, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define i32 @select_i32_eq(i32 %a, i32 %b, i32 %c) { @@ -38,8 +35,7 @@ define i32 @select_i32_eq(i32 %a, i32 %b, i32 %c) { } ; CHECK-LABEL: select_i32_ne: -; CHECK-NEXT: .param i32, i32, i32{{$}} -; CHECK-NEXT: .result i32{{$}} +; CHECK-NEXT: .functype select_i32_ne (i32, i32, i32) -> (i32){{$}} ; CHECK-NEXT: i32.select $push0=, $1, $2, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define i32 @select_i32_ne(i32 %a, i32 %b, i32 %c) { @@ -49,8 +45,7 @@ define i32 @select_i32_ne(i32 %a, i32 %b, i32 %c) { } ; CHECK-LABEL: select_i64_bool: -; CHECK-NEXT: .param i32, i64, i64{{$}} -; CHECK-NEXT: .result i64{{$}} +; CHECK-NEXT: .functype select_i64_bool (i32, i64, i64) -> (i64){{$}} ; CHECK-NEXT: i64.select $push0=, $1, $2, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define i64 @select_i64_bool(i1 zeroext %a, i64 %b, i64 %c) { @@ -59,8 +54,7 @@ define i64 @select_i64_bool(i1 zeroext %a, i64 %b, i64 %c) { } ; CHECK-LABEL: select_i64_bool_nozext: -; CHECK-NEXT: .param i32, i64, i64{{$}} -; CHECK-NEXT: .result i64{{$}} +; CHECK-NEXT: .functype select_i64_bool_nozext (i32, i64, i64) -> (i64){{$}} ; SLOW-NEXT: i64.select $push0=, $1, $2, $0{{$}} ; SLOW-NEXT: return $pop0{{$}} define i64 @select_i64_bool_nozext(i1 %a, i64 %b, i64 %c) { @@ -69,8 +63,7 @@ define i64 @select_i64_bool_nozext(i1 %a, i64 %b, i64 %c) { } ; CHECK-LABEL: select_i64_eq: -; CHECK-NEXT: .param i32, i64, i64{{$}} -; CHECK-NEXT: .result i64{{$}} +; CHECK-NEXT: .functype select_i64_eq (i32, i64, i64) -> (i64){{$}} ; CHECK-NEXT: i64.select $push0=, $2, $1, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define i64 @select_i64_eq(i32 %a, i64 %b, i64 %c) { @@ -80,8 +73,7 @@ define i64 @select_i64_eq(i32 %a, i64 %b, i64 %c) { } ; CHECK-LABEL: select_i64_ne: -; CHECK-NEXT: .param i32, i64, i64{{$}} -; CHECK-NEXT: .result i64{{$}} +; CHECK-NEXT: .functype select_i64_ne (i32, i64, i64) -> (i64){{$}} ; CHECK-NEXT: i64.select $push0=, $1, $2, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define i64 @select_i64_ne(i32 %a, i64 %b, i64 %c) { @@ -91,8 +83,7 @@ define i64 @select_i64_ne(i32 %a, i64 %b, i64 %c) { } ; CHECK-LABEL: select_f32_bool: -; CHECK-NEXT: .param i32, f32, f32{{$}} -; CHECK-NEXT: .result f32{{$}} +; CHECK-NEXT: .functype select_f32_bool (i32, f32, f32) -> (f32){{$}} ; CHECK-NEXT: f32.select $push0=, $1, $2, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define float @select_f32_bool(i1 zeroext %a, float %b, float %c) { @@ -101,8 +92,7 @@ define float @select_f32_bool(i1 zeroext %a, float %b, float %c) { } ; CHECK-LABEL: select_f32_bool_nozext: -; CHECK-NEXT: .param i32, f32, f32{{$}} -; CHECK-NEXT: .result f32{{$}} +; CHECK-NEXT: .functype select_f32_bool_nozext (i32, f32, f32) -> (f32){{$}} ; SLOW-NEXT: f32.select $push0=, $1, $2, $0{{$}} ; SLOW-NEXT: return $pop0{{$}} define float @select_f32_bool_nozext(i1 %a, float %b, float %c) { @@ -111,8 +101,7 @@ define float @select_f32_bool_nozext(i1 %a, float %b, float %c) { } ; CHECK-LABEL: select_f32_eq: -; CHECK-NEXT: .param i32, f32, f32{{$}} -; CHECK-NEXT: .result f32{{$}} +; CHECK-NEXT: .functype select_f32_eq (i32, f32, f32) -> (f32){{$}} ; CHECK-NEXT: f32.select $push0=, $2, $1, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define float @select_f32_eq(i32 %a, float %b, float %c) { @@ -122,8 +111,7 @@ define float @select_f32_eq(i32 %a, float %b, float %c) { } ; CHECK-LABEL: select_f32_ne: -; CHECK-NEXT: .param i32, f32, f32{{$}} -; CHECK-NEXT: .result f32{{$}} +; CHECK-NEXT: .functype select_f32_ne (i32, f32, f32) -> (f32){{$}} ; CHECK-NEXT: f32.select $push0=, $1, $2, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define float @select_f32_ne(i32 %a, float %b, float %c) { @@ -133,8 +121,7 @@ define float @select_f32_ne(i32 %a, float %b, float %c) { } ; CHECK-LABEL: select_f64_bool: -; CHECK-NEXT: .param i32, f64, f64{{$}} -; CHECK-NEXT: .result f64{{$}} +; CHECK-NEXT: .functype select_f64_bool (i32, f64, f64) -> (f64){{$}} ; CHECK-NEXT: f64.select $push0=, $1, $2, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define double @select_f64_bool(i1 zeroext %a, double %b, double %c) { @@ -143,8 +130,7 @@ define double @select_f64_bool(i1 zeroext %a, double %b, double %c) { } ; CHECK-LABEL: select_f64_bool_nozext: -; CHECK-NEXT: .param i32, f64, f64{{$}} -; CHECK-NEXT: .result f64{{$}} +; CHECK-NEXT: .functype select_f64_bool_nozext (i32, f64, f64) -> (f64){{$}} ; SLOW-NEXT: f64.select $push0=, $1, $2, $0{{$}} ; SLOW-NEXT: return $pop0{{$}} define double @select_f64_bool_nozext(i1 %a, double %b, double %c) { @@ -153,8 +139,7 @@ define double @select_f64_bool_nozext(i1 %a, double %b, double %c) { } ; CHECK-LABEL: select_f64_eq: -; CHECK-NEXT: .param i32, f64, f64{{$}} -; CHECK-NEXT: .result f64{{$}} +; CHECK-NEXT: .functype select_f64_eq (i32, f64, f64) -> (f64){{$}} ; CHECK-NEXT: f64.select $push0=, $2, $1, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define double @select_f64_eq(i32 %a, double %b, double %c) { @@ -164,8 +149,7 @@ define double @select_f64_eq(i32 %a, double %b, double %c) { } ; CHECK-LABEL: select_f64_ne: -; CHECK-NEXT: .param i32, f64, f64{{$}} -; CHECK-NEXT: .result f64{{$}} +; CHECK-NEXT: .functype select_f64_ne (i32, f64, f64) -> (f64){{$}} ; CHECK-NEXT: f64.select $push0=, $1, $2, $0{{$}} ; CHECK-NEXT: return $pop0{{$}} define double @select_f64_ne(i32 %a, double %b, double %c) { |