Tom Stellard | 1b2c2d8 | 2013-08-21 22:42:58 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s |
| 2 | |
| 3 | ; This tests for a bug in the SelectionDAG where custom lowered truncated |
| 4 | ; vector stores at the end of a basic block were not being added to the |
| 5 | ; LegalizedNodes list, which triggered an assertion failure. |
| 6 | |
Tom Stellard | 79243d9 | 2014-10-01 17:15:17 +0000 | [diff] [blame^] | 7 | ; CHECK-LABEL: {{^}}test: |
Tom Stellard | 1b2c2d8 | 2013-08-21 22:42:58 +0000 | [diff] [blame] | 8 | ; CHECK: MEM_RAT_CACHELESS STORE_RAW |
| 9 | define void @test(<4 x i8> addrspace(1)* %out, i32 %cond, <4 x i8> %in) { |
| 10 | entry: |
| 11 | %0 = icmp eq i32 %cond, 0 |
| 12 | br i1 %0, label %if, label %done |
| 13 | |
| 14 | if: |
| 15 | store <4 x i8> %in, <4 x i8> addrspace(1)* %out |
| 16 | br label %done |
| 17 | |
| 18 | done: |
| 19 | ret void |
| 20 | } |