summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-12-13 08:11:45 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-12-13 08:11:45 +0000
commit7acf89a21a543dd361a3ff47b50e65228e520a01 (patch)
tree689fe673a3d128e191013759bc4a94e0b92ffcfa
parent040ee58795e19d793fea9bbe1dd4213b7a8e5378 (diff)
downloadbcm5719-llvm-7acf89a21a543dd361a3ff47b50e65228e520a01.tar.gz
bcm5719-llvm-7acf89a21a543dd361a3ff47b50e65228e520a01.zip
AMDGPU/GlobalISel: Test cleanups
Remove IR and registers sections llvm-svn: 349011
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-add.mir14
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir14
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ashr.mir10
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bitcast.mir14
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fadd.mir18
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fcmp.mir20
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fmul.mir14
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptoui.mir12
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-icmp.mir17
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-or.mir13
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-select.mir23
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-shl.mir10
12 files changed, 41 insertions, 138 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-add.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-add.mir
index 3f8d58522ca..57e1148bc59 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-add.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-add.mir
@@ -1,16 +1,8 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_add() { ret void }
-...
-
---
name: test_add
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0:
liveins: $vgpr0, $vgpr1
@@ -19,8 +11,8 @@ body: |
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
; CHECK: [[ADD:%[0-9]+]]:_(s32) = G_ADD [[COPY]], [[COPY1]]
- %0(s32) = COPY $vgpr0
- %1(s32) = COPY $vgpr1
- %2(s32) = G_ADD %0, %1
+ %0:_(s32) = COPY $vgpr0
+ %1:_(s32) = COPY $vgpr1
+ %2:_(s32) = G_ADD %0, %1
$vgpr0 = COPY %2
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir
index 0282ff40837..f561cc7d092 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir
@@ -1,16 +1,8 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_and() { ret void }
-...
-
---
name: test_and
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0:
liveins: $vgpr0, $vgpr1
@@ -19,8 +11,8 @@ body: |
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY]], [[COPY1]]
- %0(s32) = COPY $vgpr0
- %1(s32) = COPY $vgpr1
- %2(s32) = G_AND %0, %1
+ %0:_(s32) = COPY $vgpr0
+ %1:_(s32) = COPY $vgpr1
+ %2:_(s32) = G_AND %0, %1
$vgpr0 = COPY %2
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ashr.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ashr.mir
index 71a9de8e6bf..59b5ac993ce 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ashr.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ashr.mir
@@ -3,10 +3,6 @@
---
name: test_ashr
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0.entry:
liveins: $vgpr0, $vgpr1
@@ -15,8 +11,8 @@ body: |
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_ASHR [[COPY]], [[COPY1]]
- %0(s32) = COPY $vgpr0
- %1(s32) = COPY $vgpr1
- %2(s32) = G_ASHR %0, %1
+ %0:_(s32) = COPY $vgpr0
+ %1:_(s32) = COPY $vgpr1
+ %2:_(s32) = G_ASHR %0, %1
$vgpr0 = COPY %2
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bitcast.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bitcast.mir
index 5bf39e38c2c..492da48a93f 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bitcast.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bitcast.mir
@@ -1,16 +1,8 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_bitcast() { ret void }
-...
-
---
name: test_bitcast
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0:
liveins: $vgpr0
@@ -19,8 +11,8 @@ body: |
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
; CHECK: [[BITCAST:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[COPY]](s32)
; CHECK: [[BITCAST1:%[0-9]+]]:_(s32) = G_BITCAST [[BITCAST]](<2 x s16>)
- %0(s32) = COPY $vgpr0
- %1(<2 x s16>) = G_BITCAST %0
- %2(s32) = G_BITCAST %1
+ %0:_(s32) = COPY $vgpr0
+ %1:_(<2 x s16>) = G_BITCAST %0
+ %2:_(s32) = G_BITCAST %1
$vgpr0 = COPY %2
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fadd.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fadd.mir
index 1a66bbabe8c..6597eea3f7e 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fadd.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fadd.mir
@@ -1,27 +1,15 @@
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_fadd() {
- entry:
- ret void
- }
-
-...
-
---
name: test_fadd
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0.entry:
liveins: $vgpr0, $vgpr1
; CHECK-LABEL: name: test_fadd
; CHECK: %2:_(s32) = G_FADD %0, %1
- %0(s32) = COPY $vgpr0
- %1(s32) = COPY $vgpr1
- %2(s32) = G_FADD %0, %1
+ %0:_(s32) = COPY $vgpr0
+ %1:_(s32) = COPY $vgpr1
+ %2:_(s32) = G_FADD %0, %1
$vgpr0 = COPY %2
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fcmp.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fcmp.mir
index bcd372e0587..c09903f2573 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fcmp.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fcmp.mir
@@ -3,33 +3,25 @@
---
name: test_fcmp_f32
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0:
liveins: $vgpr0
; CHECK-LABEL: name: test_fcmp_f32
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
- %0(s32) = G_CONSTANT i32 0
- %1(s32) = COPY $vgpr0
+ %0:_(s32) = G_CONSTANT i32 0
+ %1:_(s32) = COPY $vgpr0
- %2(s1) = G_FCMP floatpred(uge), %0, %1
+ %2:_(s1) = G_FCMP floatpred(uge), %0, %1
...
---
name: test_fcmp_f64
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0:
liveins: $vgpr0_vgpr1
; CHECK-LABEL: name: test_fcmp_f64
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
- %0(s64) = G_CONSTANT i64 0
- %1(s64) = COPY $vgpr0_vgpr1
+ %0:_(s64) = G_CONSTANT i64 0
+ %1:_(s64) = COPY $vgpr0_vgpr1
- %2(s1) = G_FCMP floatpred(uge), %0, %1
+ %2:_(s1) = G_FCMP floatpred(uge), %0, %1
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fmul.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fmul.mir
index e68b1bed5fb..361e9af2a86 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fmul.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fmul.mir
@@ -1,16 +1,8 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_fmul() { ret void }
-...
-
---
name: test_fmul
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0:
liveins: $vgpr0, $vgpr1
@@ -19,8 +11,8 @@ body: |
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
; CHECK: [[FMUL:%[0-9]+]]:_(s32) = G_FMUL [[COPY]], [[COPY1]]
- %0(s32) = COPY $vgpr0
- %1(s32) = COPY $vgpr1
- %2(s32) = G_FMUL %0, %1
+ %0:_(s32) = COPY $vgpr0
+ %1:_(s32) = COPY $vgpr1
+ %2:_(s32) = G_FMUL %0, %1
$vgpr0 = COPY %2
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptoui.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptoui.mir
index d83eb1ae2a8..aede6af2603 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptoui.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptoui.mir
@@ -1,22 +1,14 @@
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_fptoui() { ret void }
-...
-
---
name: test_fptoui
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0:
liveins: $vgpr0
; CHECK-LABEL: name: test_fptoui
; CHECK: %1:_(s32) = G_FPTOUI %0
- %0(s32) = COPY $vgpr0
- %1(s32) = G_FPTOUI %0
+ %0:_(s32) = COPY $vgpr0
+ %1:_(s32) = G_FPTOUI %0
$vgpr0 = COPY %1
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-icmp.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-icmp.mir
index 0549c685ce4..00c0c963350 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-icmp.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-icmp.mir
@@ -1,19 +1,8 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -O0 -march=amdgcn -mcpu=fiji -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_icmp() {
- entry:
- ret void
- }
-...
-
---
name: test_icmp
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0.entry:
liveins: $vgpr0
@@ -23,9 +12,9 @@ body: |
; CHECK: [[ICMP:%[0-9]+]]:_(s1) = G_ICMP intpred(ne), [[C]](s32), [[COPY]]
; CHECK: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP]](s1), [[C]], [[COPY]]
; CHECK: $vgpr0 = COPY [[SELECT]](s32)
- %0(s32) = G_CONSTANT i32 0
- %1(s32) = COPY $vgpr0
- %2(s1) = G_ICMP intpred(ne), %0, %1
+ %0:_(s32) = G_CONSTANT i32 0
+ %1:_(s32) = COPY $vgpr0
+ %2:_(s1) = G_ICMP intpred(ne), %0, %1
%3:_(s32) = G_SELECT %2(s1), %0(s32), %1(s32)
$vgpr0 = COPY %3
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-or.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-or.mir
index 5b176e408d2..6e988dabe17 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-or.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-or.mir
@@ -1,15 +1,8 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_or() { ret void }
-...
---
name: test_or
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0:
liveins: $vgpr0, $vgpr1
@@ -18,8 +11,8 @@ body: |
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[COPY]], [[COPY1]]
- %0(s32) = COPY $vgpr0
- %1(s32) = COPY $vgpr1
- %2(s32) = G_OR %0, %1
+ %0:_(s32) = COPY $vgpr0
+ %1:_(s32) = COPY $vgpr1
+ %2:_(s32) = G_OR %0, %1
$vgpr0 = COPY %2
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-select.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-select.mir
index ec223539cfc..4c04612240e 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-select.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-select.mir
@@ -1,19 +1,8 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -O0 -march=amdgcn -mcpu=fiji -run-pass=legalizer %s -o - | FileCheck %s
---- |
- define void @test_select() { ret void }
-...
-
---
name: test_select
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
- - { id: 3, class: _ }
- - { id: 4, class: _ }
- - { id: 5, class: _ }
body: |
bb.0:
liveins: $vgpr0
@@ -24,13 +13,13 @@ body: |
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 2
; CHECK: [[SELECT:%[0-9]+]]:_(s32) = G_SELECT [[ICMP]](s1), [[C1]], [[C2]]
- %0(s32) = G_CONSTANT i32 0
- %1(s32) = COPY $vgpr0
+ %0:_(s32) = G_CONSTANT i32 0
+ %1:_(s32) = COPY $vgpr0
- %2(s1) = G_ICMP intpred(ne), %0, %1
- %3(s32) = G_CONSTANT i32 1
- %4(s32) = G_CONSTANT i32 2
- %5(s32) = G_SELECT %2, %3, %4
+ %2:_(s1) = G_ICMP intpred(ne), %0, %1
+ %3:_(s32) = G_CONSTANT i32 1
+ %4:_(s32) = G_CONSTANT i32 2
+ %5:_(s32) = G_SELECT %2, %3, %4
$vgpr0 = COPY %5
...
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-shl.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-shl.mir
index 5d2ec5f7fb6..cd24d48a0db 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-shl.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-shl.mir
@@ -3,10 +3,6 @@
---
name: test_shl
-registers:
- - { id: 0, class: _ }
- - { id: 1, class: _ }
- - { id: 2, class: _ }
body: |
bb.0.entry:
liveins: $vgpr0, $vgpr1
@@ -15,8 +11,8 @@ body: |
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[COPY]], [[COPY1]]
- %0(s32) = COPY $vgpr0
- %1(s32) = COPY $vgpr1
- %2(s32) = G_SHL %0, %1
+ %0:_(s32) = COPY $vgpr0
+ %1:_(s32) = COPY $vgpr1
+ %2:_(s32) = G_SHL %0, %1
$vgpr0 = COPY %2
...
OpenPOWER on IntegriCloud