Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/AMDGPU/inline-asm.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children | 1172e4bd9c6f |
line wrap: on
line source
; RUN: llc < %s -march=amdgcn -mcpu=SI -verify-machineinstrs | FileCheck %s ; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s ; CHECK: {{^}}inline_asm: ; CHECK: s_endpgm ; CHECK: s_endpgm define void @inline_asm(i32 addrspace(1)* %out) { entry: store i32 5, i32 addrspace(1)* %out call void asm sideeffect "s_endpgm", ""() ret void } ; CHECK: {{^}}inline_asm_shader: ; CHECK: s_endpgm ; CHECK: s_endpgm define void @inline_asm_shader() #0 { entry: call void asm sideeffect "s_endpgm", ""() ret void } attributes #0 = { "ShaderType"="0" }