• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-objdump -d - | FileCheck  %s
2
3// Test for proper instruction relaxation behavior for the push $imm
4// instruction forms. This is the 32-bit version of the push $imm tests from
5// 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 $-128
11// CHECK-NEXT:   3: 66 6a 7f                      pushw $127
12// CHECK-NEXT:   6: 6a 80                         pushl $-128
13// CHECK-NEXT:   8: 6a 7f                         pushl $127
14        .section push8,"x"
15        pushw $-128
16        pushw $127
17        push  $-128
18        push  $127
19
20// CHECK:      Disassembly of section push32:
21// CHECK-EMPTY:
22// CHECK-NEXT: <push32>:
23// CHECK-NEXT:   0: 66 68 00 00                   pushw $0
24// CHECK-NEXT:   4: 68 00 00 00 00                pushl $0
25        .section push32,"x"
26        pushw $foo
27        push  $foo
28