OLD | NEW |
1 ; Test if we can read load instructions. | 1 ; Test if we can read load instructions. |
2 | 2 |
3 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s | 3 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s |
4 ; RUN: %if --need=allow_disable_ir_gen --command \ | 4 ; RUN: %p2i -i %s --args -notranslate -timing | \ |
5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ | |
6 ; RUN: | %if --need=allow_disable_ir_gen --command \ | |
7 ; RUN: FileCheck --check-prefix=NOIR %s | 5 ; RUN: FileCheck --check-prefix=NOIR %s |
8 | 6 |
9 define internal i32 @load_i8(i32 %addr) { | 7 define internal i32 @load_i8(i32 %addr) { |
10 entry: | 8 entry: |
11 %addr_i8 = inttoptr i32 %addr to i8* | 9 %addr_i8 = inttoptr i32 %addr to i8* |
12 %v = load i8, i8* %addr_i8, align 1 | 10 %v = load i8, i8* %addr_i8, align 1 |
13 %r = sext i8 %v to i32 | 11 %r = sext i8 %v to i32 |
14 ret i32 %r | 12 ret i32 %r |
15 | 13 |
16 ; CHECK: __0: | 14 ; CHECK: __0: |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 %addr_v4xFloat = inttoptr i32 %addr to <4 x float>* | 140 %addr_v4xFloat = inttoptr i32 %addr to <4 x float>* |
143 %v = load <4 x float>, <4 x float>* %addr_v4xFloat, align 4 | 141 %v = load <4 x float>, <4 x float>* %addr_v4xFloat, align 4 |
144 ret <4 x float> %v | 142 ret <4 x float> %v |
145 | 143 |
146 ; CHECK: __0: | 144 ; CHECK: __0: |
147 ; CHECK-NEXT: %__1 = load <4 x float>, <4 x float>* %__0, align 4 | 145 ; CHECK-NEXT: %__1 = load <4 x float>, <4 x float>* %__0, align 4 |
148 ; CHECK-NEXT: ret <4 x float> %__1 | 146 ; CHECK-NEXT: ret <4 x float> %__1 |
149 } | 147 } |
150 | 148 |
151 ; NOIR: Total across all functions | 149 ; NOIR: Total across all functions |
OLD | NEW |