brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.5 KiB · 4d4da58 Raw
231 lines · plain
1 2# RUN: not llvm-mc -triple powerpc64-unknown-unknown < %s 2> %t3# RUN: FileCheck < %t %s4# RUN: not llvm-mc -triple powerpc64le-unknown-unknown < %s 2> %t5# RUN: FileCheck < %t %s6 7# From ISAFuture8 9# CHECK: error: invalid operand for instruction10paddis 10, 5, 1000000000, 111 12# From ISA3113 14# CHECK: error: invalid operand for instruction15paddi 1, 1, 32, 116 17# CHECK: error: invalid operand for instruction18pld 1, 32(1), 119 20# CHECK: error: invalid operand for instruction21plbz 1, 32(1), 122 23# CHECK: error: invalid operand for instruction24plfd 1, 32(1), 125 26# CHECK: error: invalid operand for instruction27plfs 1, 32(1), 128 29# CHECK: error: invalid operand for instruction30plha 1, 32(1), 131 32# CHECK: error: invalid operand for instruction33plhz 1, 32(1), 134 35# CHECK: error: invalid operand for instruction36plwa 1, 32(1), 137 38# CHECK: error: invalid operand for instruction39plwz 1, 32(1), 140 41# CHECK: error: invalid operand for instruction42plxsd 1, 32(1), 143 44# CHECK: error: invalid operand for instruction45plxssp 1, 32(1), 146 47# CHECK: error: invalid operand for instruction48plxv 1, 32(1), 149 50# CHECK: error: invalid operand for instruction51pstb 1, 32(1), 152 53# CHECK: error: invalid operand for instruction54pstd 1, 32(1), 155 56# CHECK: error: invalid operand for instruction57pstfd 1, 32(1), 158 59# CHECK: error: invalid operand for instruction60pstfs 1, 32(1), 161 62# CHECK: error: invalid operand for instruction63psth 1, 32(1), 164 65# CHECK: error: invalid operand for instruction66pstw 1, 32(1), 167 68# CHECK: error: invalid operand for instruction69pstxsd 1, 32(1), 170 71# CHECK: error: invalid operand for instruction72pstxssp 1, 32(1), 173 74# CHECK: error: invalid operand for instruction75pstxv 1, 32(1), 176 77# Register operands78 79# CHECK: error: invalid operand for instruction80# CHECK-NEXT: add 32, 32, 3281              add 32, 32, 3282 83# CHECK: error: invalid register name84# CHECK-NEXT: add %r32, %r32, %r3285              add %r32, %r32, %r3286 87# TLS register operands88 89# CHECK: error: invalid operand for instruction90# CHECK-NEXT: add 3, symbol@tls, 491              add 3, symbol@tls, 492 93# CHECK: error: invalid operand for instruction94# CHECK-NEXT: subf 3, 4, symbol@tls95              subf 3, 4, symbol@tls96 97# Unsigned 1-bit immediate operands98 99# CHECK: error: invalid operand for instruction100# CHECK-NEXT: mtmsr 1, 2101              mtmsr 1, 2102 103# CHECK: error: invalid operand for instruction104# CHECK-NEXT: mtmsrd 1, 2105              mtmsrd 1, 2106 107# CHECK: error: invalid operand for instruction108# CHECK-NEXT: mtfsf 1, 2, 2, 1109              mtfsf 1, 2, 2, 1110 111# CHECK: error: invalid operand for instruction112# CHECK-NEXT: mtfsf. 1, 2, 2, 1113              mtfsf. 1, 2, 2, 1114 115# Unsigned 2-bit immediate operands116 117# CHECK: error: invalid operand for instruction118# CHECK-NEXT: darn 1, 4119              darn 1, 4120 121# CHECK: error: invalid operand for instruction122# CHECK-NEXT: wait 4123              wait 4124 125# CHECK: error: invalid operand for instruction126# CHECK-NEXT: sync 8127              sync 8128 129# Unsigned 3-bit immediate operands130 131# CHECK: error: invalid operand for instruction132# CHECK-NEXT: dcbf 0, 1, 8133              dcbf 0, 1, 8134 135# Signed 16-bit immediate operands136 137# CHECK: error: invalid operand for instruction138# CHECK-NEXT: addi 1, 0, -32769139              addi 1, 0, -32769140 141# CHECK: error: invalid operand for instruction142# CHECK-NEXT: addi 1, 0, 32768143              addi 1, 0, 32768144 145# Unsigned 16-bit immediate operands146 147# CHECK: error: invalid operand for instruction148# CHECK-NEXT: ori 1, 2, -1149              ori 1, 2, -1150 151# CHECK: error: invalid operand for instruction152# CHECK-NEXT: ori 1, 2, 65536153              ori 1, 2, 65536154 155# Signed 16-bit immediate operands (extended range for addis)156 157# CHECK: error: invalid operand for instruction158         addis 1, 0, -65537159 160# CHECK: error: invalid operand for instruction161         addis 1, 0, 65536162 163# D-Form memory operands164 165# CHECK: error: invalid register number166# CHECK-NEXT: lwz 1, 0(32)167              lwz 1, 0(32)168 169# CHECK: error: invalid register name170# CHECK-NEXT: lwz 1, 0(%r32)171              lwz 1, 0(%r32)172 173# CHECK: error: invalid operand for instruction174# CHECK-NEXT: lwz 1, -32769(2)175              lwz 1, -32769(2)176 177# CHECK: error: invalid operand for instruction178# CHECK-NEXT: lwz 1, 32768(2)179              lwz 1, 32768(2)180 181# CHECK: error: invalid register number182# CHECK-NEXT: ld 1, 0(32)183              ld 1, 0(32)184 185# CHECK: error: invalid register name186# CHECK-NEXT: ld 1, 0(%r32)187              ld 1, 0(%r32)188 189# CHECK: error: invalid operand for instruction190# CHECK-NEXT: ld 1, 1(2)191              ld 1, 1(2)192 193# CHECK: error: invalid operand for instruction194# CHECK-NEXT: ld 1, 2(2)195              ld 1, 2(2)196 197# CHECK: error: invalid operand for instruction198# CHECK-NEXT: ld 1, 3(2)199              ld 1, 3(2)200 201# CHECK: error: invalid operand for instruction202# CHECK-NEXT: ld 1, -32772(2)203              ld 1, -32772(2)204 205# CHECK: error: invalid operand for instruction206# CHECK-NEXT: ld 1, 32768(2)207              ld 1, 32768(2)208 209# CHECK: error: invalid modifier 'got' (no symbols present)210         addi 4, 3, 123@got211# CHECK-NEXT: addi 4, 3, 123@got212 213# CHECK: error: invalid operand for instruction214# CHECK-NEXT: lwarx 1, 2, 3, a215              lwarx 1, 2, 3, a216 217# Instruction requires memory operand218# CHECK: error: invalid operand for instruction219# CHECK-NEXT: la 3, 3, 10220              la 3, 3, 10221 222# Instruction doesn't support memory operands223# CHECK: error: invalid operand for instruction224# CHECK-NEXT: addi 3, 10(3)225              addi 3, 10(3)226 227# Invalid memory operand position228# CHECK: error: invalid operand for instruction229# CHECK-NEXT: la 0(3), 3230              la 0(3), 3231