summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/call_fs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/call_fs.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/call_fs.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/call_fs.ll b/llvm/test/CodeGen/AMDGPU/call_fs.ll
new file mode 100644
index 00000000000..87bebbc49d5
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/call_fs.ll
@@ -0,0 +1,17 @@
+
+; RUN: llc < %s -march=r600 -mcpu=redwood -show-mc-encoding -o - | FileCheck --check-prefix=EG %s
+; RUN: llc < %s -march=r600 -mcpu=rv710 -show-mc-encoding -o - | FileCheck --check-prefix=R600 %s
+
+; EG: .long 257
+; EG: {{^}}call_fs:
+; EG: CALL_FS ; encoding: [0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x84]
+; R600: .long 257
+; R600: {{^}}call_fs:
+; R600:CALL_FS ; encoding: [0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x89]
+
+
+define void @call_fs() #0 {
+ ret void
+}
+
+attributes #0 = { "ShaderType"="1" } ; Vertex Shader
OpenPOWER on IntegriCloud