Home | History | Annotate | Download | only in R600
      1 ; RUN: llc < %s -march=amdgcn -mcpu=SI -mattr=-promote-alloca -verify-machineinstrs | FileCheck --check-prefix=SI --check-prefix=FUNC %s
      2 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -mattr=-promote-alloca -verify-machineinstrs | FileCheck --check-prefix=SI --check-prefix=FUNC %s
      3 
      4 ; FUNC-LABEL: {{^}}load_i8_sext_private:
      5 ; SI: buffer_load_sbyte v{{[0-9]+}}, v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}], s{{[0-9]+}} offen
      6 define void @load_i8_sext_private(i32 addrspace(1)* %out) {
      7 entry:
      8   %tmp0 = alloca i8
      9   %tmp1 = load i8, i8* %tmp0
     10   %tmp2 = sext i8 %tmp1 to i32
     11   store i32 %tmp2, i32 addrspace(1)* %out
     12   ret void
     13 }
     14 
     15 ; FUNC-LABEL: {{^}}load_i8_zext_private:
     16 ; SI: buffer_load_ubyte v{{[0-9]+}}, v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}], s{{[0-9]+}} offen
     17 define void @load_i8_zext_private(i32 addrspace(1)* %out) {
     18 entry:
     19   %tmp0 = alloca i8
     20   %tmp1 = load i8, i8* %tmp0
     21   %tmp2 = zext i8 %tmp1 to i32
     22   store i32 %tmp2, i32 addrspace(1)* %out
     23   ret void
     24 }
     25 
     26 ; FUNC-LABEL: {{^}}load_i16_sext_private:
     27 ; SI: buffer_load_sshort v{{[0-9]+}}, v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}], s{{[0-9]+}} offen
     28 define void @load_i16_sext_private(i32 addrspace(1)* %out) {
     29 entry:
     30   %tmp0 = alloca i16
     31   %tmp1 = load i16, i16* %tmp0
     32   %tmp2 = sext i16 %tmp1 to i32
     33   store i32 %tmp2, i32 addrspace(1)* %out
     34   ret void
     35 }
     36 
     37 ; FUNC-LABEL: {{^}}load_i16_zext_private:
     38 ; SI: buffer_load_ushort v{{[0-9]+}}, v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}], s{{[0-9]+}} offen
     39 define void @load_i16_zext_private(i32 addrspace(1)* %out) {
     40 entry:
     41   %tmp0 = alloca i16
     42   %tmp1 = load i16, i16* %tmp0
     43   %tmp2 = zext i16 %tmp1 to i32
     44   store i32 %tmp2, i32 addrspace(1)* %out
     45   ret void
     46 }
     47