R600/SI: Use -verify-machineinstrs for most tests
[oota-llvm.git] / test / CodeGen / R600 / trunc.ll
1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI %s
2 ; RUN: llc -march=r600 -mcpu=cypress < %s | FileCheck -check-prefix=EG %s
3
4
5 define void @trunc_i64_to_i32_store(i32 addrspace(1)* %out, i64 %in) {
6 ; SI-LABEL: @trunc_i64_to_i32_store
7 ; SI: S_LOAD_DWORD SGPR0, SGPR0_SGPR1, 11
8 ; SI: V_MOV_B32_e32 VGPR0, SGPR0
9 ; SI: BUFFER_STORE_DWORD VGPR0
10
11 ; EG-LABEL: @trunc_i64_to_i32_store
12 ; EG: MEM_RAT_CACHELESS STORE_RAW T0.X, T1.X, 1
13 ; EG: LSHR
14 ; EG-NEXT: 2(
15
16   %result = trunc i64 %in to i32 store i32 %result, i32 addrspace(1)* %out, align 4
17   ret void
18 }
19