Home | History | Annotate | Download | only in R600
      1 ; RUN: llc < %s -march=r600 -mcpu=tahiti -verify-machineinstrs | FileCheck %s
      2 
      3 ; load a f64 value from the global address space.
      4 ; CHECK-LABEL: @load_f64:
      5 ; CHECK: BUFFER_LOAD_DWORDX2 v[{{[0-9]+:[0-9]+}}]
      6 ; CHECK: BUFFER_STORE_DWORDX2 v[{{[0-9]+:[0-9]+}}]
      7 define void @load_f64(double addrspace(1)* %out, double addrspace(1)* %in) {
      8   %1 = load double addrspace(1)* %in
      9   store double %1, double addrspace(1)* %out
     10   ret void
     11 }
     12 
     13 ; CHECK-LABEL: @load_i64:
     14 ; CHECK: BUFFER_LOAD_DWORDX2 v[{{[0-9]+:[0-9]+}}]
     15 ; CHECK: BUFFER_STORE_DWORDX2 v[{{[0-9]+:[0-9]+}}]
     16 define void @load_i64(i64 addrspace(1)* %out, i64 addrspace(1)* %in) {
     17   %tmp = load i64 addrspace(1)* %in
     18   store i64 %tmp, i64 addrspace(1)* %out, align 8
     19   ret void
     20 }
     21 
     22 ; Load a f64 value from the constant address space.
     23 ; CHECK-LABEL: @load_const_addrspace_f64:
     24 ; CHECK: S_LOAD_DWORDX2 s[{{[0-9]+:[0-9]+}}]
     25 ; CHECK: BUFFER_STORE_DWORDX2 v[{{[0-9]+:[0-9]+}}]
     26 define void @load_const_addrspace_f64(double addrspace(1)* %out, double addrspace(2)* %in) {
     27   %1 = load double addrspace(2)* %in
     28   store double %1, double addrspace(1)* %out
     29   ret void
     30 }
     31