brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1012 B · 75b598e Raw
28 lines · plain
1// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-objdump --no-print-imm-hex -d - | FileCheck  %s2 3// Test for proper instruction relaxation behavior for the push $imm4// instruction forms. This is the 32-bit version of the push $imm tests from5// relax-arith.s and relax-arith2.s.6 7// CHECK:      Disassembly of section push8:8// CHECK-EMPTY:9// CHECK-NEXT: <push8>:10// CHECK-NEXT:   0: 66 6a 80                      pushw $-12811// CHECK-NEXT:   3: 66 6a 7f                      pushw $12712// CHECK-NEXT:   6: 6a 80                         pushl $-12813// CHECK-NEXT:   8: 6a 7f                         pushl $12714        .section push8,"x"15        pushw $-12816        pushw $12717        push  $-12818        push  $12719 20// CHECK:      Disassembly of section push32:21// CHECK-EMPTY:22// CHECK-NEXT: <push32>:23// CHECK-NEXT:   0: 66 68 00 00                   pushw $024// CHECK-NEXT:   4: 68 00 00 00 00                pushl $025        .section push32,"x"26        pushw $foo27        push  $foo28