Marek Olsak | 1bd2463 | 2015-02-03 17:37:52 +0000 | [diff] [blame^] | 1 | ;RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck --check-prefix=SI --check-prefix=BOTH %s |
| 2 | ;RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck --check-prefix=VI --check-prefix=BOTH %s |
| 3 | |
| 4 | ; BOTH-LABEL: {{^}}main: |
| 5 | ; BOTH: s_mov_b32 m0, s0 |
| 6 | ; VI-NEXT: s_nop 0 |
| 7 | ; BOTH-NEXT: s_sendmsg Gs_done(nop) |
| 8 | ; BOTH-NEXT: s_endpgm |
| 9 | |
| 10 | define void @main(i32 inreg %a) #0 { |
| 11 | main_body: |
| 12 | call void @llvm.SI.sendmsg(i32 3, i32 %a) |
| 13 | ret void |
| 14 | } |
| 15 | |
| 16 | ; Function Attrs: nounwind |
| 17 | declare void @llvm.SI.sendmsg(i32, i32) #1 |
| 18 | |
| 19 | attributes #0 = { "ShaderType"="2" "unsafe-fp-math"="true" } |
| 20 | attributes #1 = { nounwind } |