Matt Arsenault | 8e00194 | 2016-06-02 18:37:16 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=amdgcn -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s |
| 2 | ; RUN: llc -march=r600 -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s |
| 3 | |
| 4 | ; Should not crash when the processor is not recognized and the |
| 5 | ; wavefront size feature not set. |
| 6 | |
| 7 | ; Should also not have fragments of r600 and gcn isa mixed. |
| 8 | |
| 9 | ; ERROR: 'unknown' is not a recognized processor for this target (ignoring processor) |
| 10 | |
| 11 | ; GCN-NOT: MOV |
| 12 | ; GCN: buffer_store_dword |
| 13 | ; GCN: ScratchSize: 8{{$}} |
| 14 | |
| 15 | ; R600: MOV |
Matt Arsenault | 3dbeefa | 2017-03-21 21:39:51 +0000 | [diff] [blame] | 16 | define amdgpu_kernel void @foo() { |
Matt Arsenault | 8e00194 | 2016-06-02 18:37:16 +0000 | [diff] [blame] | 17 | %alloca = alloca i32, align 4 |
| 18 | store volatile i32 0, i32* %alloca |
| 19 | ret void |
| 20 | } |