brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 56ffb9a Raw
82 lines · plain
1# RUN: llvm-mc --disassemble %s -triple=sparc-unknown-linux   | FileCheck %s --check-prefixes=CHECK,V82# RUN: llvm-mc --disassemble %s -triple=sparcv9-unknown-linux | FileCheck %s --check-prefixes=CHECK,V93 4# CHECK: wr %g1, -2, %y50x81 0x80 0x7f 0xfe6 7# CHECK: rd %y, %i080xb1 0x40 0x00 0x009 10# CHECK: rd %asr1, %i0110xb1 0x40 0x40 0x0012 13# CHECK: wr %i0, 5, %y140x81 0x86 0x20 0x0515 16# CHECK: wr %i0, %i1, %asr15170x9f 0x86 0x00 0x1918 19# CHECK: rd %psr, %i0200xb1 0x48 0x00 0x0021 22# CHECK: rd %wim, %i0230xb1 0x50 0x00 0x0024 25# CHECK: rd %tbr, %i0260xb1 0x58 0x00 0x0027 28# CHECK: wr %i0, 5, %psr290x81 0x8e 0x20 0x0530 31# CHECK: wr %i0, 5, %wim320x81 0x96 0x20 0x0533 34# CHECK: wr %i0, 5, %tbr350x81 0x9e 0x20 0x0536 37# CHECK: st %fsr, [%i5]380xc1 0x2f 0x40 0x0039 40## The same encoding resolves to different instructions in V8 and V9.41# V8: std %fq, [%i5+%l1]42# V9: stq %f0, [%i5+%l1]430xc1 0x37 0x40 0x1144 45 46## Those instructions are processed differently on V8 and V9.47 48# V8: rd %asr2, %i049# V9: rd %ccr, %i0500xb1 0x40 0x80 0x0051# V8: wr %i0, 7, %asr252# V9: wr %i0, 7, %ccr530x85 0x86 0x20 0x0754 55# V8: rd %asr3, %i056# V9: rd %asi, %i0570xb1 0x40 0xc0 0x0058# V8: wr %i0, 7, %asr359# V9: wr %i0, 7, %asi600x87 0x86 0x20 0x0761 62# V8: rd %asr4, %i063# V9: rd %tick, %i0640xb1 0x41 0x00 0x0065# V8: wr %i0, 7, %asr466# V9: wr %i0, 7, %tick670x89 0x86 0x20 0x0768 69# V8: rd %asr5, %i070# V9: rd %pc, %i0710xb1 0x41 0x40 0x0072# V8: wr %i0, 7, %asr573# V9: wr %i0, 7, %pc740x8b 0x86 0x20 0x0775 76# V8: rd %asr6, %i077# V9: rd %fprs, %i0780xb1 0x41 0x80 0x0079# V8: wr %i0, 7, %asr680# V9: wr %i0, 7, %fprs810x8d 0x86 0x20 0x0782