brintos

brintos / llvm-project-archived public Read only

0
0
Text · 33.5 KiB · 6dd0dc3 Raw
576 lines · plain
1! RUN: not llvm-mc %s -triple=sparc   -show-encoding 2>&1 | FileCheck %s --check-prefix=V82! RUN: llvm-mc %s -triple=sparcv9 -show-encoding | FileCheck %s --check-prefix=V93 4        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic5        ! V9:      addx %g2, %g1, %g3              ! encoding: [0x86,0x40,0x80,0x01]6        addc %g2, %g1, %g37 8        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic9        ! V9:      addx %g2, 1, %g3              ! encoding: [0x86,0x40,0xa0,0x01]10        addc %g2, 1, %g311 12        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic13        ! V9:      addx %g2, 1, %g3              ! encoding: [0x86,0x40,0xa0,0x01]14        addc 1, %g2, %g315 16        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic17        ! V9:      addxcc %g1, %g2, %g3            ! encoding: [0x86,0xc0,0x40,0x02]18        addccc %g1, %g2, %g319 20        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic21        ! V9:      subx %g2, %g1, %g3          ! encoding: [0x86,0x60,0x80,0x01]22        subc %g2, %g1, %g323 24        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic25        ! V9:      subxcc %g1, %g2, %g3         ! encoding: [0x86,0xe0,0x40,0x02]26        subccc %g1, %g2, %g327 28        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled29        ! V9:      popc %g1, %g2                ! encoding: [0x85,0x70,0x00,0x01]30        popc %g1, %g231 32 33        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled34        ! V9: sra %g1, %g0, %g2               ! encoding: [0x85,0x38,0x40,0x00]35        signx %g1, %g236        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled37        ! V9: sra %g1, %g0, %g1               ! encoding: [0x83,0x38,0x40,0x00]38        signx %g139 40        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic41        ! V9: ld [%i0+%l6], %o2    ! encoding: [0xd4,0x06,0x00,0x16]42        lduw [%i0 + %l6], %o243        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic44        ! V9: ld [%i0+32], %o2     ! encoding: [0xd4,0x06,0x20,0x20]45        lduw [%i0 + 32], %o246        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic47        ! V9: ld [%g1], %o2        ! encoding: [0xd4,0x00,0x40,0x00]48        lduw [%g1], %o249        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic50        ! V9: lda [%i0+%l6] #ASI_SNF, %o2 ! encoding: [0xd4,0x86,0x10,0x76]51        lduwa [%i0 + %l6] 131, %o252        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic53        ! V9: lda [%i0+%l6] #ASI_SNF, %o2 ! encoding: [0xd4,0x86,0x10,0x76]54        lduwa [%i0 + %l6] (130+1), %o255 56        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled57        ! V9: ldsw [%i0+%l6], %o2    ! encoding: [0xd4,0x46,0x00,0x16]58        ldsw [%i0 + %l6], %o259        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled60        ! V9: ldsw [%i0+32], %o2     ! encoding: [0xd4,0x46,0x20,0x20]61        ldsw [%i0 + 32], %o262        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled63        ! V9: ldsw [%g1], %o2        ! encoding: [0xd4,0x40,0x40,0x00]64        ldsw [%g1], %o265        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled66        ! V9: ldswa [%i0+%l6] #ASI_SNF, %o2 ! encoding: [0xd4,0xc6,0x10,0x76]67        ldswa [%i0 + %l6] 131, %o268        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled69        ! V9: ldswa [%i0+%l6] #ASI_SNF, %o2 ! encoding: [0xd4,0xc6,0x10,0x76]70        ldswa [%i0 + %l6] (130+1), %o271 72        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled73        ! V9: lda [%l0] 240, %f29             ! encoding: [0xfb,0x84,0x1e,0x00]74        lda [%l0] 0xf0, %f2975        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled76        ! V9: lda [%l0] 240, %f29             ! encoding: [0xfb,0x84,0x1e,0x00]77        lda [%l0] (0xef+0x01), %f2978 79        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled80        ! V9: ldda [%l0] 240, %f48            ! encoding: [0xe3,0x9c,0x1e,0x00]81        ldda [%l0] 0xf0, %f4882        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled83        ! V9: ldda [%l0] 240, %f48            ! encoding: [0xe3,0x9c,0x1e,0x00]84        ldda [%l0] (0xef+0x01), %f4885 86        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled87        ! V9: ldqa [%l0] 240, %f48            ! encoding: [0xe3,0x94,0x1e,0x00]88        ldqa [%l0] 0xf0, %f4889        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled90        ! V9: ldqa [%l0] 240, %f48            ! encoding: [0xe3,0x94,0x1e,0x00]91        ldqa [%l0] (0xef+0x01), %f4892        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled93        ! V9: ldq [%l0], %f48                 ! encoding: [0xe3,0x14,0x00,0x00]94        ldq [%l0], %f4895 96 97        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled98        ! V9: sta %f29, [%l0] 240             ! encoding: [0xfb,0xa4,0x1e,0x00]99        sta %f29, [%l0] 0xf0100        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled101        ! V9: sta %f29, [%l0] 240             ! encoding: [0xfb,0xa4,0x1e,0x00]102        sta %f29, [%l0] (0xef+0x01)103 104        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled105        ! V9: stda %f48, [%l0] 240            ! encoding: [0xe3,0xbc,0x1e,0x00]106        stda %f48, [%l0] 0xf0107        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled108        ! V9: stda %f48, [%l0] 240            ! encoding: [0xe3,0xbc,0x1e,0x00]109        stda %f48, [%l0] (0xef+0x01)110 111        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled112        ! V9: stqa %f48, [%l0] 240            ! encoding: [0xe3,0xb4,0x1e,0x00]113        stqa %f48, [%l0] 0xf0114        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled115        ! V9: stqa %f48, [%l0] 240            ! encoding: [0xe3,0xb4,0x1e,0x00]116        stqa %f48, [%l0] (0xef+0x01)117        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled118        ! V9: stq %f48, [%l0]                 ! encoding: [0xe3,0x34,0x00,0x00]119        stq %f48, [%l0]120 121        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled122        ! V9: ldx [%g2+20], %fsr    ! encoding: [0xc3,0x08,0xa0,0x14]123        ldx [%g2 + 20],%fsr124 125        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled126        ! V9: ldx [%g2+%i5], %fsr   ! encoding: [0xc3,0x08,0x80,0x1d]127        ldx [%g2 + %i5],%fsr128 129        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled130        ! V9: ldxa [%g2+%i5] #ASI_SNF, %g0   ! encoding: [0xc0,0xd8,0x90,0x7d]131        ldxa [%g2 + %i5] 131, %g0132        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled133        ! V9: ldxa [%g2+%i5] #ASI_SNF, %g0   ! encoding: [0xc0,0xd8,0x90,0x7d]134        ldxa [%g2 + %i5] (130+1), %g0135 136        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled137        ! V9: stx %fsr, [%g2+20]    ! encoding: [0xc3,0x28,0xa0,0x14]138        stx %fsr,[%g2 + 20]139 140        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled141        ! V9: stx %fsr, [%g2+%i5]   ! encoding: [0xc3,0x28,0x80,0x1d]142        stx %fsr,[%g2 + %i5]143 144        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled145        ! V9: stxa %g0, [%g2+%i5] #ASI_SNF   ! encoding: [0xc0,0xf0,0x90,0x7d]146        stxa %g0, [%g2 + %i5] 131147        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled148        ! V9: stxa %g0, [%g2+%i5] #ASI_SNF   ! encoding: [0xc0,0xf0,0x90,0x7d]149        stxa %g0, [%g2 + %i5] (130+1)150 151        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled152        ! V9: wrpr %g6, %fp, %tpc        ! encoding: [0x81,0x91,0x80,0x1e]153        wrpr %g6,%i6,%tpc154        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled155        ! V9: wrpr %g6, %fp, %tnpc       ! encoding: [0x83,0x91,0x80,0x1e]156        wrpr %g6,%i6,%tnpc157        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled158        ! V9: wrpr %g6, %fp, %tstate     ! encoding: [0x85,0x91,0x80,0x1e]159        wrpr %g6,%i6,%tstate160        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled161        ! V9: wrpr %g6, %fp, %tt         ! encoding: [0x87,0x91,0x80,0x1e]162        wrpr %g6,%i6,%tt163        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled164        ! V9: wrpr %g6, %fp, %tick       ! encoding: [0x89,0x91,0x80,0x1e]165        wrpr %g6,%i6,%tick166        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled167        ! V9: wrpr %g6, %fp, %tba        ! encoding: [0x8b,0x91,0x80,0x1e]168        wrpr %g6,%i6,%tba169        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled170        ! V9: wrpr %g6, %fp, %pstate     ! encoding: [0x8d,0x91,0x80,0x1e]171        wrpr %g6,%i6,%pstate172        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled173        ! V9: wrpr %g6, %fp, %tl         ! encoding: [0x8f,0x91,0x80,0x1e]174        wrpr %g6,%i6,%tl175        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled176        ! V9: wrpr %g6, %fp, %pil        ! encoding: [0x91,0x91,0x80,0x1e]177        wrpr %g6,%i6,%pil178        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled179        ! V9: wrpr %g6, %fp, %cwp        ! encoding: [0x93,0x91,0x80,0x1e]180        wrpr %g6,%i6,%cwp181        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled182        ! V9: wrpr %g6, %fp, %cansave    ! encoding: [0x95,0x91,0x80,0x1e]183        wrpr %g6,%i6,%cansave184        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled185        ! V9: wrpr %g6, %fp, %canrestore ! encoding: [0x97,0x91,0x80,0x1e]186        wrpr %g6,%i6,%canrestore187        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled188        ! V9: wrpr %g6, %fp, %cleanwin   ! encoding: [0x99,0x91,0x80,0x1e]189        wrpr %g6,%i6,%cleanwin190        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled191        ! V9: wrpr %g6, %fp, %otherwin   ! encoding: [0x9b,0x91,0x80,0x1e]192        wrpr %g6,%i6,%otherwin193        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled194        ! V9: wrpr %g6, %fp, %wstate     ! encoding: [0x9d,0x91,0x80,0x1e]195        wrpr %g6,%i6,%wstate196 197        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled198        ! V9: wrpr %g6, 255, %tpc        ! encoding: [0x81,0x91,0xa0,0xff]199        wrpr %g6,255,%tpc200        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled201        ! V9: wrpr %g6, 255, %tnpc       ! encoding: [0x83,0x91,0xa0,0xff]202        wrpr %g6,255,%tnpc203        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled204        ! V9: wrpr %g6, 255, %tstate     ! encoding: [0x85,0x91,0xa0,0xff]205        wrpr %g6,255,%tstate206        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled207        ! V9: wrpr %g6, 255, %tt         ! encoding: [0x87,0x91,0xa0,0xff]208        wrpr %g6,255,%tt209        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled210        ! V9: wrpr %g6, 255, %tick       ! encoding: [0x89,0x91,0xa0,0xff]211        wrpr %g6,255,%tick212        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled213        ! V9: wrpr %g6, 255, %tba        ! encoding: [0x8b,0x91,0xa0,0xff]214        wrpr %g6,255,%tba215        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled216        ! V9: wrpr %g6, 255, %pstate     ! encoding: [0x8d,0x91,0xa0,0xff]217        wrpr %g6,255,%pstate218        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled219        ! V9: wrpr %g6, 255, %tl         ! encoding: [0x8f,0x91,0xa0,0xff]220        wrpr %g6,255,%tl221        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled222        ! V9: wrpr %g6, 255, %pil        ! encoding: [0x91,0x91,0xa0,0xff]223        wrpr %g6,255,%pil224        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled225        ! V9: wrpr %g6, 255, %cwp        ! encoding: [0x93,0x91,0xa0,0xff]226        wrpr %g6,255,%cwp227        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled228        ! V9: wrpr %g6, 255, %cansave    ! encoding: [0x95,0x91,0xa0,0xff]229        wrpr %g6,255,%cansave230        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled231        ! V9: wrpr %g6, 255, %canrestore ! encoding: [0x97,0x91,0xa0,0xff]232        wrpr %g6,255,%canrestore233        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled234        ! V9: wrpr %g6, 255, %cleanwin   ! encoding: [0x99,0x91,0xa0,0xff]235        wrpr %g6,255,%cleanwin236        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled237        ! V9: wrpr %g6, 255, %otherwin   ! encoding: [0x9b,0x91,0xa0,0xff]238        wrpr %g6,255,%otherwin239        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled240        ! V9: wrpr %g6, 255, %wstate     ! encoding: [0x9d,0x91,0xa0,0xff]241        wrpr %g6,255,%wstate242 243        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled244        ! V9: wrpr %fp, %g0, %tpc        ! encoding: [0x81,0x97,0x80,0x00]245        wrpr %i6,%tpc246        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled247        ! V9: wrpr %fp, %g0, %tnpc       ! encoding: [0x83,0x97,0x80,0x00]248        wrpr %i6,%tnpc249        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled250        ! V9: wrpr %fp, %g0, %tstate     ! encoding: [0x85,0x97,0x80,0x00]251        wrpr %i6,%tstate252        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled253        ! V9: wrpr %fp, %g0, %tt         ! encoding: [0x87,0x97,0x80,0x00]254        wrpr %i6,%tt255        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled256        ! V9: wrpr %fp, %g0, %tick       ! encoding: [0x89,0x97,0x80,0x00]257        wrpr %i6,%tick258        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled259        ! V9: wrpr %fp, %g0, %tba        ! encoding: [0x8b,0x97,0x80,0x00]260        wrpr %i6,%tba261        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled262        ! V9: wrpr %fp, %g0, %pstate     ! encoding: [0x8d,0x97,0x80,0x00]263        wrpr %i6,%pstate264        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled265        ! V9: wrpr %fp, %g0, %tl         ! encoding: [0x8f,0x97,0x80,0x00]266        wrpr %i6,%tl267        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled268        ! V9: wrpr %fp, %g0, %pil        ! encoding: [0x91,0x97,0x80,0x00]269        wrpr %i6,%pil270        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled271        ! V9: wrpr %fp, %g0, %cwp        ! encoding: [0x93,0x97,0x80,0x00]272        wrpr %i6,%cwp273        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled274        ! V9: wrpr %fp, %g0, %cansave    ! encoding: [0x95,0x97,0x80,0x00]275        wrpr %i6,%cansave276        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled277        ! V9: wrpr %fp, %g0, %canrestore ! encoding: [0x97,0x97,0x80,0x00]278        wrpr %i6,%canrestore279        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled280        ! V9: wrpr %fp, %g0, %cleanwin   ! encoding: [0x99,0x97,0x80,0x00]281        wrpr %i6,%cleanwin282        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled283        ! V9: wrpr %fp, %g0, %otherwin   ! encoding: [0x9b,0x97,0x80,0x00]284        wrpr %i6,%otherwin285        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled286        ! V9: wrpr %fp, %g0, %wstate     ! encoding: [0x9d,0x97,0x80,0x00]287        wrpr %i6,%wstate288 289        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled290        ! V9: wrpr %g0, 255, %tpc        ! encoding: [0x81,0x90,0x20,0xff]291        wrpr 255,%tpc292        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled293        ! V9: wrpr %g0, 255, %tnpc       ! encoding: [0x83,0x90,0x20,0xff]294        wrpr 255,%tnpc295        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled296        ! V9: wrpr %g0, 255, %tstate     ! encoding: [0x85,0x90,0x20,0xff]297        wrpr 255,%tstate298        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled299        ! V9: wrpr %g0, 255, %tt         ! encoding: [0x87,0x90,0x20,0xff]300        wrpr 255,%tt301        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled302        ! V9: wrpr %g0, 255, %tick       ! encoding: [0x89,0x90,0x20,0xff]303        wrpr 255,%tick304        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled305        ! V9: wrpr %g0, 255, %tba        ! encoding: [0x8b,0x90,0x20,0xff]306        wrpr 255,%tba307        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled308        ! V9: wrpr %g0, 255, %pstate     ! encoding: [0x8d,0x90,0x20,0xff]309        wrpr 255,%pstate310        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled311        ! V9: wrpr %g0, 255, %tl         ! encoding: [0x8f,0x90,0x20,0xff]312        wrpr 255,%tl313        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled314        ! V9: wrpr %g0, 255, %pil        ! encoding: [0x91,0x90,0x20,0xff]315        wrpr 255,%pil316        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled317        ! V9: wrpr %g0, 255, %cwp        ! encoding: [0x93,0x90,0x20,0xff]318        wrpr 255,%cwp319        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled320        ! V9: wrpr %g0, 255, %cansave    ! encoding: [0x95,0x90,0x20,0xff]321        wrpr 255,%cansave322        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled323        ! V9: wrpr %g0, 255, %canrestore ! encoding: [0x97,0x90,0x20,0xff]324        wrpr 255,%canrestore325        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled326        ! V9: wrpr %g0, 255, %cleanwin   ! encoding: [0x99,0x90,0x20,0xff]327        wrpr 255,%cleanwin328        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled329        ! V9: wrpr %g0, 255, %otherwin   ! encoding: [0x9b,0x90,0x20,0xff]330        wrpr 255,%otherwin331        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled332        ! V9: wrpr %g0, 255, %wstate     ! encoding: [0x9d,0x90,0x20,0xff]333        wrpr 255,%wstate334 335        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled336        ! V9: rdpr %tpc, %i5            ! encoding: [0xbb,0x50,0x00,0x00]337        rdpr %tpc,%i5338        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled339        ! V9: rdpr %tnpc, %i5           ! encoding: [0xbb,0x50,0x40,0x00]340        rdpr %tnpc,%i5341        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled342        ! V9: rdpr %tstate, %i5         ! encoding: [0xbb,0x50,0x80,0x00]343        rdpr %tstate,%i5344        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled345        ! V9: rdpr %tt, %i5             ! encoding: [0xbb,0x50,0xc0,0x00]346        rdpr %tt,%i5347        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled348        ! V9: rdpr %tick, %i5           ! encoding: [0xbb,0x51,0x00,0x00]349        rdpr %tick,%i5350        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled351        ! V9: rdpr %tba, %i5            ! encoding: [0xbb,0x51,0x40,0x00]352        rdpr %tba,%i5353        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled354        ! V9: rdpr %pstate, %i5         ! encoding: [0xbb,0x51,0x80,0x00]355        rdpr %pstate,%i5356        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled357        ! V9: rdpr %tl, %i5             ! encoding: [0xbb,0x51,0xc0,0x00]358        rdpr %tl,%i5359        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled360        ! V9: rdpr %pil, %i5            ! encoding: [0xbb,0x52,0x00,0x00]361        rdpr %pil,%i5362        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled363        ! V9: rdpr %cwp, %i5            ! encoding: [0xbb,0x52,0x40,0x00]364        rdpr %cwp,%i5365        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled366        ! V9: rdpr %cansave, %i5        ! encoding: [0xbb,0x52,0x80,0x00]367        rdpr %cansave,%i5368        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled369        ! V9: rdpr %canrestore, %i5     ! encoding: [0xbb,0x52,0xc0,0x00]370        rdpr %canrestore,%i5371        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled372        ! V9: rdpr %cleanwin, %i5       ! encoding: [0xbb,0x53,0x00,0x00]373        rdpr %cleanwin,%i5374        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled375        ! V9: rdpr %otherwin, %i5       ! encoding: [0xbb,0x53,0x40,0x00]376        rdpr %otherwin,%i5377        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled378        ! V9: rdpr %wstate, %i5         ! encoding: [0xbb,0x53,0x80,0x00]379        rdpr %wstate,%i5380 381        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled382        ! V9: rdpr %fq, %i5             ! encoding: [0xbb,0x53,0xc0,0x00]383        rdpr %fq,%i5384        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled385        ! V9: rdpr %ver, %i5            ! encoding: [0xbb,0x57,0xc0,0x00]386        rdpr %ver,%i5387 388        ! V9: rd %pc, %o7               ! encoding: [0x9f,0x41,0x40,0x00]389        rd %pc, %o7390        ! V9: rd %asi, %g1              ! encoding: [0x83,0x40,0xc0,0x00]391        rd %asi, %g1392        ! V9: rd %ccr, %g1              ! encoding: [0x83,0x40,0x80,0x00]393        rd %ccr, %g1394        ! V9: rd %tick, %i5             ! encoding: [0xbb,0x41,0x00,0x00]395        rd %tick,%i5396 397        ! V9: wr %i0, %i1, %asi         ! encoding: [0x87,0x86,0x00,0x19]398        wr %i0, %i1, %asi399        ! V9: wr %i0, 1, %asi           ! encoding: [0x87,0x86,0x20,0x01]400        wr %i0, 1, %asi401        ! V9: wr %i0, %i1, %ccr         ! encoding: [0x85,0x86,0x00,0x19]402        wr %i0, %i1, %ccr403        ! V9: wr %i0, 1, %ccr           ! encoding: [0x85,0x86,0x20,0x01]404        wr %i0, 1, %ccr405        ! V9: wr %i0, 1, %asr20         ! encoding: [0xa9,0x86,0x20,0x01]406        wr %i0, 1, %set_softint407        ! V9: wr %i0, 1, %asr21         ! encoding: [0xab,0x86,0x20,0x01]408        wr %i0, 1, %clear_softint409 410        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic411        ! V9: st %o1, [%o0]             ! encoding: [0xd2,0x22,0x00,0x00]412        stw %o1, [%o0]413        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic414        ! V9: st %o1, [%o0]             ! encoding: [0xd2,0x22,0x00,0x00]415        stuw %o1, [%o0]416        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic417        ! V9: st %o1, [%o0]             ! encoding: [0xd2,0x22,0x00,0x00]418        stsw %o1, [%o0]419 420        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic421        ! V9: sta %o2, [%i0+%l6] #ASI_SNF ! encoding: [0xd4,0xa6,0x10,0x76]422        stwa %o2, [%i0 + %l6] 131423        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic424        ! V9: sta %o2, [%i0+%l6] #ASI_SNF ! encoding: [0xd4,0xa6,0x10,0x76]425        stuwa %o2, [%i0 + %l6] 131426        ! V8:      [[#@LINE+2]]:9: error: invalid instruction mnemonic427        ! V9: sta %o2, [%i0+%l6] #ASI_SNF ! encoding: [0xd4,0xa6,0x10,0x76]428        stswa %o2, [%i0 + %l6] 131429 430        !! SPARCv9 provides a new variant of ASI-tagged memory accesses.431        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled432        ! V9: ldxa [%g2] %asi, %g0    ! encoding: [0xc0,0xd8,0xa0,0x00]433        ldxa [%g2] %asi, %g0434        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled435        ! V9: stxa %g0, [%g2] %asi    ! encoding: [0xc0,0xf0,0xa0,0x00]436        stxa %g0, [%g2] %asi437        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled438        ! V9: ldxa [%g2+5] %asi, %g0    ! encoding: [0xc0,0xd8,0xa0,0x05]439        ldxa [%g2 + 5] %asi, %g0440        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled441        ! V9: stxa %g0, [%g2+5] %asi    ! encoding: [0xc0,0xf0,0xa0,0x05]442        stxa %g0, [%g2 + 5] %asi443 444        !! Also make sure named ASI tags are parsed properly.445        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled446        ! V9: ldxa [%g2+%i5] #ASI_SNF, %g0   ! encoding: [0xc0,0xd8,0x90,0x7d]447        ldxa [%g2 + %i5] #ASI_SNF, %g0448        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled449        ! V9: stxa %g0, [%g2+%i5] #ASI_SNF   ! encoding: [0xc0,0xf0,0x90,0x7d]450        stxa %g0, [%g2 + %i5] #ASI_SNF451 452        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled453        ! V9: prefetch  [%i1+3968], #one_read  ! encoding: [0xc3,0x6e,0x6f,0x80]454        prefetch  [ %i1 + 0xf80 ], 1455 456        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled457        ! V9: prefetch  [%i1+3968], #n_reads  ! encoding: [0xc1,0x6e,0x6f,0x80]458        prefetch  [ %i1 + 0xf80 ], #n_reads459 460        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled461        ! V9: prefetch  [%i1+3968], #one_read  ! encoding: [0xc3,0x6e,0x6f,0x80]462        prefetch  [ %i1 + 0xf80 ], #one_read463 464        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled465        ! V9: prefetch  [%i1+3968], #n_writes  ! encoding: [0xc5,0x6e,0x6f,0x80]466        prefetch  [ %i1 + 0xf80 ], #n_writes467 468        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled469        ! V9: prefetch  [%i1+3968], #one_write  ! encoding: [0xc7,0x6e,0x6f,0x80]470        prefetch  [ %i1 + 0xf80 ], #one_write471 472        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled473        ! V9: prefetch  [%i1+3968], #page  ! encoding: [0xc9,0x6e,0x6f,0x80]474        prefetch  [ %i1 + 0xf80 ], #page475 476        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled477        ! V9: prefetch  [%i1+3968], #unified  ! encoding: [0xe3,0x6e,0x6f,0x80]478        prefetch  [ %i1 + 0xf80 ], #unified479 480        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled481        ! V9: prefetch  [%i1+3968], #n_reads_strong  ! encoding: [0xe9,0x6e,0x6f,0x80]482        prefetch  [ %i1 + 0xf80 ], #n_reads_strong483 484        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled485        ! V9: prefetch  [%i1+3968], #one_read_strong  ! encoding: [0xeb,0x6e,0x6f,0x80]486        prefetch  [ %i1 + 0xf80 ], #one_read_strong487 488        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled489        ! V9: prefetch  [%i1+3968], #n_writes_strong  ! encoding: [0xed,0x6e,0x6f,0x80]490        prefetch  [ %i1 + 0xf80 ], #n_writes_strong491 492        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled493        ! V9: prefetch  [%i1+3968], #one_write_strong  ! encoding: [0xef,0x6e,0x6f,0x80]494        prefetch  [ %i1 + 0xf80 ], #one_write_strong495 496        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled497        ! V9: prefetch  [%i1+%i2], #one_read  ! encoding: [0xc3,0x6e,0x40,0x1a]498        prefetch  [ %i1 + %i2 ], 1499 500        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled501        ! V9: prefetch  [%i1+%i2], #n_reads  ! encoding: [0xc1,0x6e,0x40,0x1a]502        prefetch  [ %i1 + %i2 ], #n_reads503 504        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled505        ! V9: prefetch  [%i1+%i2], #one_read  ! encoding: [0xc3,0x6e,0x40,0x1a]506        prefetch  [ %i1 + %i2 ], #one_read507 508        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled509        ! V9: prefetch  [%i1+%i2], #n_writes  ! encoding: [0xc5,0x6e,0x40,0x1a]510        prefetch  [ %i1 + %i2 ], #n_writes511 512        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled513        ! V9: prefetch  [%i1+%i2], #one_write  ! encoding: [0xc7,0x6e,0x40,0x1a]514        prefetch  [ %i1 + %i2 ], #one_write515 516        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled517        ! V9: prefetch  [%i1+%i2], #page  ! encoding: [0xc9,0x6e,0x40,0x1a]518        prefetch  [ %i1 + %i2 ], #page519 520        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled521        ! V9: prefetch  [%i1+%i2], #unified  ! encoding: [0xe3,0x6e,0x40,0x1a]522        prefetch  [ %i1 + %i2 ], #unified523 524        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled525        ! V9: prefetch  [%i1+%i2], #n_reads_strong  ! encoding: [0xe9,0x6e,0x40,0x1a]526        prefetch  [ %i1 + %i2 ], #n_reads_strong527 528        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled529        ! V9: prefetch  [%i1+%i2], #one_read_strong  ! encoding: [0xeb,0x6e,0x40,0x1a]530        prefetch  [ %i1 + %i2 ], #one_read_strong531 532        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled533        ! V9: prefetch  [%i1+%i2], #n_writes_strong  ! encoding: [0xed,0x6e,0x40,0x1a]534        prefetch  [ %i1 + %i2 ], #n_writes_strong535 536        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled537        ! V9: prefetch  [%i1+%i2], #one_write_strong  ! encoding: [0xef,0x6e,0x40,0x1a]538        prefetch  [ %i1 + %i2 ], #one_write_strong539 540        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled541        ! V9: prefetcha [%i1+3968] %asi, #one_read    ! encoding: [0xc3,0xee,0x6f,0x80]542        prefetcha  [ %i1 + 0xf80 ] %asi, 1543 544        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled545        ! V9: prefetcha [%i1+3968] %asi, #one_read    ! encoding: [0xc3,0xee,0x6f,0x80]546        prefetcha  [ %i1 + 0xf80 ] %asi, #one_read547 548        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled549        ! V9: prefetcha [%i1+%i2] #ASI_SNF, #one_read ! encoding: [0xc3,0xee,0x50,0x7a]550        prefetcha  [ %i1 + %i2 ] #ASI_SNF, 1551 552        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled553        ! V9: prefetcha [%i1+%i2] #ASI_SNF, #one_read ! encoding: [0xc3,0xee,0x50,0x7a]554        prefetcha  [ %i1 + %i2 ] #ASI_SNF, #one_read555 556        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled557        ! V9: prefetcha [%i1+%i2] #ASI_SNF, #one_read ! encoding: [0xc3,0xee,0x50,0x7a]558        prefetcha  [ %i1 + %i2 ] 131, 1559 560        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled561        ! V9: prefetcha [%i1+%i2] #ASI_SNF, #one_read ! encoding: [0xc3,0xee,0x50,0x7a]562        prefetcha  [ %i1 + %i2 ] 131, #one_read563 564        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled565        ! V9: done      ! encoding: [0x81,0xf0,0x00,0x00]566        done567        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled568        ! V9: retry     ! encoding: [0x83,0xf0,0x00,0x00]569        retry570        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled571        ! V9: saved     ! encoding: [0x81,0x88,0x00,0x00]572        saved573        ! V8:      [[#@LINE+2]]:9: error: instruction requires a CPU feature not currently enabled574        ! V9: restored  ! encoding: [0x83,0x88,0x00,0x00]575        restored576