brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 8282ff3 Raw
50 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=amdgcn -mcpu=gfx90a -show-mc-encoding < %s | FileCheck -check-prefix=GFX9 %s3; RUN: llc -mtriple=amdgcn -show-mc-encoding < %s | FileCheck -check-prefix=SI %s4; RUN: llc -global-isel -mtriple=amdgcn -show-mc-encoding < %s | FileCheck -check-prefix=SI %s5; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx90a -show-mc-encoding < %s | FileCheck -check-prefix=GFX9 %s6 7declare void @llvm.amdgcn.s.setprio(i16) #08 9define void @test_llvm_amdgcn_s_setprio() #0 {10; GFX9-LABEL: test_llvm_amdgcn_s_setprio:11; GFX9:       ; %bb.0:12; GFX9-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]13; GFX9-NEXT:    s_setprio 0 ; encoding: [0x00,0x00,0x8f,0xbf]14; GFX9-NEXT:    s_setprio 1 ; encoding: [0x01,0x00,0x8f,0xbf]15; GFX9-NEXT:    s_setprio 2 ; encoding: [0x02,0x00,0x8f,0xbf]16; GFX9-NEXT:    s_setprio 3 ; encoding: [0x03,0x00,0x8f,0xbf]17; GFX9-NEXT:    s_setprio 10 ; encoding: [0x0a,0x00,0x8f,0xbf]18; GFX9-NEXT:    s_setprio -1 ; encoding: [0xff,0xff,0x8f,0xbf]19; GFX9-NEXT:    s_setprio 0 ; encoding: [0x00,0x00,0x8f,0xbf]20; GFX9-NEXT:    s_setprio 1 ; encoding: [0x01,0x00,0x8f,0xbf]21; GFX9-NEXT:    s_setprio -1 ; encoding: [0xff,0xff,0x8f,0xbf]22; GFX9-NEXT:    s_setpc_b64 s[30:31] ; encoding: [0x1e,0x1d,0x80,0xbe]23;24; SI-LABEL: test_llvm_amdgcn_s_setprio:25; SI:       ; %bb.0:26; SI-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]27; SI-NEXT:    s_setprio 0 ; encoding: [0x00,0x00,0x8f,0xbf]28; SI-NEXT:    s_setprio 1 ; encoding: [0x01,0x00,0x8f,0xbf]29; SI-NEXT:    s_setprio 2 ; encoding: [0x02,0x00,0x8f,0xbf]30; SI-NEXT:    s_setprio 3 ; encoding: [0x03,0x00,0x8f,0xbf]31; SI-NEXT:    s_setprio 10 ; encoding: [0x0a,0x00,0x8f,0xbf]32; SI-NEXT:    s_setprio -1 ; encoding: [0xff,0xff,0x8f,0xbf]33; SI-NEXT:    s_setprio 0 ; encoding: [0x00,0x00,0x8f,0xbf]34; SI-NEXT:    s_setprio 1 ; encoding: [0x01,0x00,0x8f,0xbf]35; SI-NEXT:    s_setprio -1 ; encoding: [0xff,0xff,0x8f,0xbf]36; SI-NEXT:    s_setpc_b64 s[30:31] ; encoding: [0x1e,0x20,0x80,0xbe]37  call void @llvm.amdgcn.s.setprio(i16 0)38  call void @llvm.amdgcn.s.setprio(i16 1)39  call void @llvm.amdgcn.s.setprio(i16 2)40  call void @llvm.amdgcn.s.setprio(i16 3)41  call void @llvm.amdgcn.s.setprio(i16 10)42  call void @llvm.amdgcn.s.setprio(i16 65535)43  call void @llvm.amdgcn.s.setprio(i16 65536)44  call void @llvm.amdgcn.s.setprio(i16 65537)45  call void @llvm.amdgcn.s.setprio(i16 -1)46  ret void47}48 49attributes #0 = { nounwind }50