brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.2 KiB · 20da7fd Raw
100 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:      error: instruction requires a CPU feature not currently enabled5! V8-NEXT: setx 1, %g1, %o16! V9: mov 1, %o1                     ! encoding: [0x92,0x10,0x20,0x01]7setx 1, %g1, %o18 9! V8:      error: instruction requires a CPU feature not currently enabled10! V8-NEXT: setx (0+1), %g1, %o111! V9: mov 1, %o1                     ! encoding: [0x92,0x10,0x20,0x01]12setx (0+1), %g1, %o113 14! V8:      error: instruction requires a CPU feature not currently enabled15! V8-NEXT: setx -1, %g1, %o116! V9: mov -1, %o1                     ! encoding: [0x92,0x10,0x3f,0xff]17setx -1, %g1, %o118 19! V8:      error: instruction requires a CPU feature not currently enabled20! V8-NEXT: setx (0-1), %g1, %o121! V9: mov -1, %o1                     ! encoding: [0x92,0x10,0x3f,0xff]22setx (0-1), %g1, %o123 24! V8:      error: instruction requires a CPU feature not currently enabled25! V8-NEXT: setx 0xffffffff, %g1, %o126! V9: sethi %hi(4294967295), %o1      ! encoding: [0x13,0b00AAAAAA,A,A]27! V9: or %o1, %lo(4294967295), %o1    ! encoding: [0x92,0x12,0b011000AA,A]28setx 0xffffffff, %g1, %o129 30! V8:      error: instruction requires a CPU feature not currently enabled31! V8-NEXT: setx (0xffff0000+0x0000ffff), %g1, %o132! V9: sethi %hi(4294967295), %o1      ! encoding: [0x13,0b00AAAAAA,A,A]33! V9: or %o1, %lo(4294967295), %o1    ! encoding: [0x92,0x12,0b011000AA,A]34setx (0xffff0000+0x0000ffff), %g1, %o135 36! V8:      error: instruction requires a CPU feature not currently enabled37! V8-NEXT: setx 0x0123456789abcdef, %g1, %o038! V9: sethi %hi(81985529216486895), %o0       ! encoding: [0x11,0b00AAAAAA,A,A]39! V9: or %o0, %lo(81985529216486895), %o0     ! encoding: [0x90,0x12,0b001000AA,A]40! V9: sethi %hh(81985529216486895), %g1       ! encoding: [0x03,0b00AAAAAA,A,A]41! V9: or %g1, %hm(81985529216486895), %g1     ! encoding: [0x82,0x10,0b011000AA,A]42! V9: sllx %g1, 32, %g1                       ! encoding: [0x83,0x28,0x70,0x20]43! V9: or %g1, %o0, %o0                        ! encoding: [0x90,0x10,0x40,0x08]44setx 0x0123456789abcdef, %g1, %o045 46! V8:      error: instruction requires a CPU feature not currently enabled47! V8-NEXT: setx (0x0123456700000000+0x0000000089abcdef), %g1, %o048! V9: sethi %hi(81985529216486895), %o0       ! encoding: [0x11,0b00AAAAAA,A,A]49! V9: or %o0, %lo(81985529216486895), %o0     ! encoding: [0x90,0x12,0b001000AA,A]50! V9: sethi %hh(81985529216486895), %g1       ! encoding: [0x03,0b00AAAAAA,A,A]51! V9: or %g1, %hm(81985529216486895), %g1     ! encoding: [0x82,0x10,0b011000AA,A]52! V9: sllx %g1, 32, %g1                       ! encoding: [0x83,0x28,0x70,0x20]53! V9: or %g1, %o0, %o0                        ! encoding: [0x90,0x10,0x40,0x08]54setx (0x0123456700000000+0x0000000089abcdef), %g1, %o055 56! V8:      error: instruction requires a CPU feature not currently enabled57! V8-NEXT: setx (.BB1-.BB0), %g1, %o058! V9: sethi %hi(.BB1-.BB0), %o0               ! encoding: [0x11,0b00AAAAAA,A,A]59! V9: or %o0, %lo(.BB1-.BB0), %o0             ! encoding: [0x90,0x12,0b001000AA,A]60! V9: sethi %hh(.BB1-.BB0), %g1               ! encoding: [0x03,0b00AAAAAA,A,A]61! V9: or %g1, %hm(.BB1-.BB0), %g1             ! encoding: [0x82,0x10,0b011000AA,A]62! V9: sllx %g1, 32, %g1                       ! encoding: [0x83,0x28,0x70,0x20]63! V9: or %g1, %o0, %o0                        ! encoding: [0x90,0x10,0x40,0x08]64setx (.BB1-.BB0), %g1, %o065 66!! In V9, setuw is a mnemonic alias for set.67! V8:      error: invalid instruction mnemonic68! V9: sethi %hi(32768), %g1            ! encoding: [0x03,0b00AAAAAA,A,A]69setuw 32768, %g170! V9: mov 1, %g1 ! encoding: [0x82,0x10,0x20,0x01]71setuw 1, %g172 73! V8:      error: instruction requires a CPU feature not currently enabled74! V9: mov 4095, %g1                   ! encoding: [0x82,0x10,0x2f,0xff]75setsw 4095, %g176! V8:      error: instruction requires a CPU feature not currently enabled77! V9: mov -4096, %g1                  ! encoding: [0x82,0x10,0x30,0x00]78setsw -4096, %g179! V8:      error: instruction requires a CPU feature not currently enabled80! V9: sethi %hi(4096), %g1            ! encoding: [0x03,0b00AAAAAA,A,A]81setsw 4096, %g182! V8:      error: instruction requires a CPU feature not currently enabled83! V9: sethi %hi(-4097), %g1           ! encoding: [0x03,0b00AAAAAA,A,A]84! V9: sra %g1, %g0, %g1               ! encoding: [0x83,0x38,0x40,0x00]85setsw -4097, %g186! V8:      error: instruction requires a CPU feature not currently enabled87! V9: sethi %hi(2147483647), %o1      ! encoding: [0x13,0b00AAAAAA,A,A]88! V9: or %o1, %lo(2147483647), %o1    ! encoding: [0x92,0x12,0b011000AA,A]89setsw 2147483647, %o190! V8:      error: instruction requires a CPU feature not currently enabled91! V9: sethi %hi(-2147483647), %o1     ! encoding: [0x13,0b00AAAAAA,A,A]92! V9: or %o1, %lo(-2147483647), %o1   ! encoding: [0x92,0x12,0b011000AA,A]93! V9: sra %o1, %g0, %o1               ! encoding: [0x93,0x3a,0x40,0x00]94setsw -2147483647, %o195! V8:      error: instruction requires a CPU feature not currently enabled96! V9: sethi %hi(.Ltmp0), %o1          ! encoding: [0x13,0b00AAAAAA,A,A]97! V9: or %o1, %lo(.Ltmp0), %o1        ! encoding: [0x92,0x12,0b011000AA,A]98! V9: sra %o1, %g0, %o1               ! encoding: [0x93,0x3a,0x40,0x00]99setsw ., %o1100