aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/AMDGPU/sext-eliminate.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AMDGPU/sext-eliminate.ll')
-rw-r--r--test/CodeGen/AMDGPU/sext-eliminate.ll26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/CodeGen/AMDGPU/sext-eliminate.ll b/test/CodeGen/AMDGPU/sext-eliminate.ll
deleted file mode 100644
index 0b780af17bca..000000000000
--- a/test/CodeGen/AMDGPU/sext-eliminate.ll
+++ /dev/null
@@ -1,26 +0,0 @@
-; RUN: llc -march=r600 -mcpu=cypress -verify-machineinstrs < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s
-
-
-; FUNC-LABEL: {{^}}sext_in_reg_i1_i32_add:
-
-; EG: MEM_{{.*}} STORE_{{.*}} [[RES:T[0-9]+\.[XYZW]]], [[ADDR:T[0-9]+.[XYZW]]]
-; EG: SUB_INT {{[* ]*}}[[RES]]
-; EG-NOT: BFE
-define amdgpu_kernel void @sext_in_reg_i1_i32_add(i32 addrspace(1)* %out, i1 %a, i32 %b) {
- %sext = sext i1 %a to i32
- %res = add i32 %b, %sext
- store i32 %res, i32 addrspace(1)* %out
- ret void
-}
-
-; FUNC-LABEL: {{^}}sext_in_reg_i1_i32_sub:
-
-; EG: MEM_{{.*}} STORE_{{.*}} [[RES:T[0-9]+\.[XYZW]]], [[ADDR:T[0-9]+.[XYZW]]]
-; EG: ADD_INT {{[* ]*}}[[RES]]
-; EG-NOT: BFE
-define amdgpu_kernel void @sext_in_reg_i1_i32_sub(i32 addrspace(1)* %out, i1 %a, i32 %b) {
- %sext = sext i1 %a to i32
- %res = sub i32 %b, %sext
- store i32 %res, i32 addrspace(1)* %out
- ret void
-}