OLD | NEW |
1 ; Simple test of the load instruction. | 1 ; Simple test of the load instruction. |
2 | 2 |
3 ; REQUIRES: allow_dump | 3 ; REQUIRES: allow_dump |
4 | 4 |
5 ; RUN: %p2i -i %s --args --verbose inst -threads=0 | FileCheck %s | 5 ; RUN: %p2i -i %s --args --verbose inst -threads=0 | FileCheck %s |
6 | 6 |
7 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 7 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
8 ; RUN: --command %p2i --filetype=asm --assemble \ | 8 ; RUN: --command %p2i --filetype=asm --assemble \ |
9 ; RUN: --disassemble --target mips32 -i %s --args -Om1 --skip-unimplemented \ | 9 ; RUN: --disassemble --target mips32 -i %s --args -Om1 \ |
10 ; RUN: -allow-externally-defined-symbols \ | 10 ; RUN: -allow-externally-defined-symbols \ |
11 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 11 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
12 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 12 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
13 | 13 |
14 define internal void @load_i64(i32 %addr_arg) { | 14 define internal void @load_i64(i32 %addr_arg) { |
15 entry: | 15 entry: |
16 %__1 = inttoptr i32 %addr_arg to i64* | 16 %__1 = inttoptr i32 %addr_arg to i64* |
17 %iv = load i64, i64* %__1, align 1 | 17 %iv = load i64, i64* %__1, align 1 |
18 ret void | 18 ret void |
19 | 19 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 ret void | 64 ret void |
65 | 65 |
66 ; CHECK: Initial CFG | 66 ; CHECK: Initial CFG |
67 ; CHECK: entry: | 67 ; CHECK: entry: |
68 ; CHECK-NEXT: %iv = load i8, i8* %addr_arg, align 1 | 68 ; CHECK-NEXT: %iv = load i8, i8* %addr_arg, align 1 |
69 ; CHECK-NEXT: ret void | 69 ; CHECK-NEXT: ret void |
70 } | 70 } |
71 | 71 |
72 ; MIPS32-LABEL: load_i8 | 72 ; MIPS32-LABEL: load_i8 |
73 ; MIPS32: lb {{.*}},0({{.*}}) | 73 ; MIPS32: lb {{.*}},0({{.*}}) |
OLD | NEW |