summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-12-27 19:26:51 -0500
committerMatt Arsenault <arsenm2@gmail.com>2020-01-09 17:37:52 -0500
commit0ea3c7291fb8d463d9c7ae6aaec7a432ef366a51 (patch)
treec4bc80a2ecf39afe0185208e8e9de84c037f7569 /llvm/test/CodeGen/AMDGPU
parentf33f3d98e9e6322846c3b997260faf3e1165e0dd (diff)
downloadbcm5719-llvm-0ea3c7291fb8d463d9c7ae6aaec7a432ef366a51.tar.gz
bcm5719-llvm-0ea3c7291fb8d463d9c7ae6aaec7a432ef366a51.zip
GlobalISel: Handle llvm.read_register
Compared to the attempt in bdcc6d3d2638b3a2c99ab3b9bfaa9c02e584993a, this uses intermediate generic instructions.
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU')
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/read_register.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/read_register.ll b/llvm/test/CodeGen/AMDGPU/GlobalISel/read_register.ll
new file mode 100644
index 00000000000..3bd16996f8e
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/read_register.ll
@@ -0,0 +1,2 @@
+; Runs original SDAG test with -global-isel
+; RUN: llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=bonaire -verify-machineinstrs < %S/../read_register.ll | FileCheck -enable-var-scope %S/../read_register.ll
OpenPOWER on IntegriCloud