OLD | NEW |
1 ; The NACLON test verifies that %r11 and %r11d are not used except as | 1 ; The NACLON test verifies that %r11 and %r11d are not used except as |
2 ; part of the return sequence. | 2 ; part of the return sequence. |
3 ; | 3 ; |
4 ; RUN: pnacl-llc -O2 -mtriple=x86_64-none-nacl < %s | \ | 4 ; RUN: pnacl-llc -O2 -mtriple=x86_64-none-nacl < %s | \ |
5 ; RUN: FileCheck %s --check-prefix=NACLON | 5 ; RUN: FileCheck %s --check-prefix=NACLON |
6 ; | 6 ; |
7 ; The NACLOFF test verifies that %r11 would normally be used if PNaCl | 7 ; The NACLOFF test verifies that %r11 would normally be used if PNaCl |
8 ; weren't reserving r11 for its own uses, to be sure NACLON is a | 8 ; weren't reserving r11 for its own uses, to be sure NACLON is a |
9 ; valid test. | 9 ; valid test. |
10 ; | 10 ; |
11 ; RUN: pnacl-llc -O2 -mtriple=x86_64-linux < %s | \ | 11 ; RUN: pnacl-llc -O2 -mtriple=x86_64-linux < %s | \ |
12 ; RUN: FileCheck %s --check-prefix=NACLOFF | 12 ; RUN: FileCheck %s --check-prefix=NACLOFF |
13 ; | 13 ; |
14 ; NACLON: RegisterPressure: | 14 ; NACLON: RegisterPressure: |
15 ; NACLON-NOT: %r11 | 15 ; NACLON-NOT: %r11 |
16 ; NACLON: popq %r11 | 16 ; NACLON: popq %r11 |
17 ; NACLON: nacljmp %r11, %r15 | 17 ; NACLON: nacljmp %r11d, %r15 |
18 ; | 18 ; |
19 ; NACLOFF: RegisterPressure: | 19 ; NACLOFF: RegisterPressure: |
20 ; NACLOFF: %r11 | 20 ; NACLOFF: %r11 |
21 ; NACLOFF: ret | 21 ; NACLOFF: ret |
22 ; ModuleID = 'pnacl-avoids-r11-x86-64.c' | 22 ; ModuleID = 'pnacl-avoids-r11-x86-64.c' |
23 target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64
:64:64-p:32:32:32-v128:32:32" | 23 target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64
:64:64-p:32:32:32-v128:32:32" |
24 target triple = "le32-unknown-nacl" | 24 target triple = "le32-unknown-nacl" |
25 | 25 |
26 @v1a = external global i32 | 26 @v1a = external global i32 |
27 @v1b = external global i32 | 27 @v1b = external global i32 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 declare void @Use(i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i3
2, i32, i32, i32) #1 | 123 declare void @Use(i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i3
2, i32, i32, i32) #1 |
124 | 124 |
125 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"=
"true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nan
s-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } | 125 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"=
"true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nan
s-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } |
126 attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "n
o-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math
"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } | 126 attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "n
o-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math
"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } |
127 attributes #2 = { nounwind } | 127 attributes #2 = { nounwind } |
128 | 128 |
129 !0 = metadata !{metadata !"int", metadata !1} | 129 !0 = metadata !{metadata !"int", metadata !1} |
130 !1 = metadata !{metadata !"omnipotent char", metadata !2} | 130 !1 = metadata !{metadata !"omnipotent char", metadata !2} |
131 !2 = metadata !{metadata !"Simple C/C++ TBAA"} | 131 !2 = metadata !{metadata !"Simple C/C++ TBAA"} |
OLD | NEW |