1! RUN: llvm-mc %s -arch=sparc -show-encoding | FileCheck %s 2! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s 3 4 ! CHECK: ldsb [%i0+%l6], %o2 ! encoding: [0xd4,0x4e,0x00,0x16] 5 ldsb [%i0 + %l6], %o2 6 ! CHECK: ldsb [%i0+32], %o2 ! encoding: [0xd4,0x4e,0x20,0x20] 7 ldsb [%i0 + 32], %o2 8 ! CHECK: ldsb [%g1], %o4 ! encoding: [0xd8,0x48,0x60,0x00] 9 ldsb [%g1], %o4 10 11 ! CHECK: ldsh [%i0+%l6], %o2 ! encoding: [0xd4,0x56,0x00,0x16] 12 ldsh [%i0 + %l6], %o2 13 ! CHECK: ldsh [%i0+32], %o2 ! encoding: [0xd4,0x56,0x20,0x20] 14 ldsh [%i0 + 32], %o2 15 ! CHECK: ldsh [%g1], %o4 ! encoding: [0xd8,0x50,0x60,0x00] 16 ldsh [%g1], %o4 17 18 ! CHECK: ldub [%i0+%l6], %o2 ! encoding: [0xd4,0x0e,0x00,0x16] 19 ldub [%i0 + %l6], %o2 20 ! CHECK: ldub [%i0+32], %o2 ! encoding: [0xd4,0x0e,0x20,0x20] 21 ldub [%i0 + 32], %o2 22 ! CHECK: ldub [%g1], %o2 ! encoding: [0xd4,0x08,0x60,0x00] 23 ldub [%g1], %o2 24 25 ! CHECK: lduh [%i0+%l6], %o2 ! encoding: [0xd4,0x16,0x00,0x16] 26 lduh [%i0 + %l6], %o2 27 ! CHECK: lduh [%i0+32], %o2 ! encoding: [0xd4,0x16,0x20,0x20] 28 lduh [%i0 + 32], %o2 29 ! CHECK: lduh [%g1], %o2 ! encoding: [0xd4,0x10,0x60,0x00] 30 lduh [%g1], %o2 31 32 ! CHECK: ld [%i0+%l6], %o2 ! encoding: [0xd4,0x06,0x00,0x16] 33 ld [%i0 + %l6], %o2 34 ! CHECK: ld [%i0+32], %o2 ! encoding: [0xd4,0x06,0x20,0x20] 35 ld [%i0 + 32], %o2 36 ! CHECK: ld [%g1], %o2 ! encoding: [0xd4,0x00,0x60,0x00] 37 ld [%g1], %o2 38 39 ! CHECK: stb %o2, [%i0+%l6] ! encoding: [0xd4,0x2e,0x00,0x16] 40 stb %o2, [%i0 + %l6] 41 ! CHECK: stb %o2, [%i0+32] ! encoding: [0xd4,0x2e,0x20,0x20] 42 stb %o2, [%i0 + 32] 43 ! CHECK: stb %o2, [%g1] ! encoding: [0xd4,0x28,0x60,0x00] 44 stb %o2, [%g1] 45 46 ! CHECK: sth %o2, [%i0+%l6] ! encoding: [0xd4,0x36,0x00,0x16] 47 sth %o2, [%i0 + %l6] 48 ! CHECK: sth %o2, [%i0+32] ! encoding: [0xd4,0x36,0x20,0x20] 49 sth %o2, [%i0 + 32] 50 ! CHECK: sth %o2, [%g1] ! encoding: [0xd4,0x30,0x60,0x00] 51 sth %o2, [%g1] 52 53 ! CHECK: st %o2, [%i0+%l6] ! encoding: [0xd4,0x26,0x00,0x16] 54 st %o2, [%i0 + %l6] 55 ! CHECK: st %o2, [%i0+32] ! encoding: [0xd4,0x26,0x20,0x20] 56 st %o2, [%i0 + 32] 57 ! CHECK: st %o2, [%g1] ! encoding: [0xd4,0x20,0x60,0x00] 58 st %o2, [%g1] 59