Konstantin Zhuravlyov | 1d65026 | 2016-09-06 20:22:28 +0000 | [diff] [blame^] | 1 | ; RUN: not llc -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs < %s 2>&1 | FileCheck %s |
| 2 | |
| 3 | ; CHECK: can't parse integer attribute amdgpu-num-sgpr |
| 4 | define void @unparseable_single_0() #0 { |
| 5 | entry: |
| 6 | ret void |
| 7 | } |
| 8 | attributes #0 = {"amdgpu-num-sgpr"} |
| 9 | |
| 10 | ; CHECK: can't parse integer attribute amdgpu-num-sgpr |
| 11 | define void @unparseable_single_1() #1 { |
| 12 | entry: |
| 13 | ret void |
| 14 | } |
| 15 | attributes #1 = {"amdgpu-num-sgpr"="k"} |
| 16 | |
| 17 | ; CHECK: can't parse integer attribute amdgpu-num-sgpr |
| 18 | define void @unparseable_single_2() #2 { |
| 19 | entry: |
| 20 | ret void |
| 21 | } |
| 22 | attributes #2 = {"amdgpu-num-sgpr"="1,2"} |
| 23 | |
| 24 | ; CHECK: can't parse first integer attribute amdgpu-flat-work-group-size |
| 25 | define void @unparseable_pair_0() #3 { |
| 26 | entry: |
| 27 | ret void |
| 28 | } |
| 29 | attributes #3 = {"amdgpu-flat-work-group-size"} |
| 30 | |
| 31 | ; CHECK: can't parse first integer attribute amdgpu-flat-work-group-size |
| 32 | define void @unparseable_pair_1() #4 { |
| 33 | entry: |
| 34 | ret void |
| 35 | } |
| 36 | attributes #4 = {"amdgpu-flat-work-group-size"="k"} |
| 37 | |
| 38 | ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size |
| 39 | define void @unparseable_pair_2() #5 { |
| 40 | entry: |
| 41 | ret void |
| 42 | } |
| 43 | attributes #5 = {"amdgpu-flat-work-group-size"="1"} |
| 44 | |
| 45 | ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size |
| 46 | define void @unparseable_pair_3() #6 { |
| 47 | entry: |
| 48 | ret void |
| 49 | } |
| 50 | attributes #6 = {"amdgpu-flat-work-group-size"="1,k"} |
| 51 | |
| 52 | ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size |
| 53 | define void @unparseable_pair_4() #7 { |
| 54 | entry: |
| 55 | ret void |
| 56 | } |
| 57 | attributes #7 = {"amdgpu-flat-work-group-size"="1,2,3"} |