OLD | NEW |
1 ; Show that we know how to translate (floating point) vldr. | 1 ; Show that we know how to translate (floating point) vldr. |
2 | 2 |
3 ; REQUIRES: allow_dump | 3 ; REQUIRES: allow_dump |
4 | 4 |
5 ; Compile using standalone assembler. | 5 ; Compile using standalone assembler. |
6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ | 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ |
7 ; RUN: -reg-use r5,s20,d20 \ | 7 ; RUN: -reg-use r5,s20,d20 \ |
8 ; RUN: | FileCheck %s --check-prefix=ASM | 8 ; RUN: | FileCheck %s --check-prefix=ASM |
9 | 9 |
10 ; Show bytes in assembled standalone code. | 10 ; Show bytes in assembled standalone code. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 define internal double @testDouble() { | 44 define internal double @testDouble() { |
45 ; ASM-LABEL: testDouble: | 45 ; ASM-LABEL: testDouble: |
46 ; DIS-LABEL: 00000020 <testDouble>: | 46 ; DIS-LABEL: 00000020 <testDouble>: |
47 | 47 |
48 entry: | 48 entry: |
49 ; ASM: .LtestDouble$entry: | 49 ; ASM: .LtestDouble$entry: |
50 | 50 |
51 ; %vaddr = bitcast [8 x i8]* @doubleVal to double* | 51 ; %vaddr = bitcast [8 x i8]* @doubleVal to double* |
52 %vaddr = inttoptr i32 0 to double* | 52 %vaddr = inttoptr i32 0 to double* |
53 %v = load double, double* %vaddr, align 1 | 53 %v = load double, double* %vaddr, align 1 |
54 | 54 |
55 ; ASM: vldr d20, [r5] | 55 ; ASM: vldr d20, [r5] |
56 ; DIS: 28: edd54b00 | 56 ; DIS: 28: edd54b00 |
57 ; IASM-NOT: vldr | 57 ; IASM-NOT: vldr |
58 | 58 |
59 ret double %v | 59 ret double %v |
60 } | 60 } |
OLD | NEW |