OLD | NEW |
1 ; Test that functions are aligned to the NaCl bundle alignment. | 1 ; Test that functions are aligned to the NaCl bundle alignment. |
2 ; We could be smarter and only do this for indirect call targets | 2 ; We could be smarter and only do this for indirect call targets |
3 ; but typically you want to align functions anyway. | 3 ; but typically you want to align functions anyway. |
4 ; Also, we are currently using hlts for non-executable padding. | 4 ; Also, we are currently using hlts for non-executable padding. |
5 | 5 |
6 ; RUN: %llvm2ice -O2 --verbose none %s \ | 6 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
7 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 7 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
8 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 8 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
9 | 9 |
10 define void @foo() { | 10 define void @foo() { |
11 ret void | 11 ret void |
12 } | 12 } |
13 ; CHECK-LABEL: foo | 13 ; CHECK-LABEL: foo |
14 ; CHECK-NEXT: 0: {{.*}} ret | 14 ; CHECK-NEXT: 0: {{.*}} ret |
15 ; CHECK-NEXT: 1: {{.*}} hlt | 15 ; CHECK-NEXT: 1: {{.*}} hlt |
16 | 16 |
17 define void @bar() { | 17 define void @bar() { |
18 ret void | 18 ret void |
19 } | 19 } |
20 ; CHECK-LABEL: bar | 20 ; CHECK-LABEL: bar |
21 ; CHECK-NEXT: 20: {{.*}} ret | 21 ; CHECK-NEXT: 20: {{.*}} ret |
OLD | NEW |