| OLD | NEW |
| 1 ; Simple test of the store instruction. | 1 ; Simple test of the store 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 -O2 --skip-unimplemented \ | 9 ; RUN: --disassemble --target mips32 -i %s --args -O2 --skip-unimplemented \ |
| 10 ; RUN: -allow-externally-defined-symbols \ | 10 ; RUN: -allow-externally-defined-symbols \ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 store i16 1, i16* %__1, align 1 | 49 store i16 1, i16* %__1, align 1 |
| 50 ret void | 50 ret void |
| 51 | 51 |
| 52 ; CHECK: Initial CFG | 52 ; CHECK: Initial CFG |
| 53 ; CHECK: entry: | 53 ; CHECK: entry: |
| 54 ; CHECK-NEXT: store i16 1, i16* %addr_arg, align 1 | 54 ; CHECK-NEXT: store i16 1, i16* %addr_arg, align 1 |
| 55 ; CHECK-NEXT: ret void | 55 ; CHECK-NEXT: ret void |
| 56 } | 56 } |
| 57 ; MIPS32-LABEL: store_i16 | 57 ; MIPS32-LABEL: store_i16 |
| 58 ; MIPS32: li | 58 ; MIPS32: li |
| 59 ; MIPS32: sw | 59 ; MIPS32: sh |
| 60 | 60 |
| 61 define internal void @store_i8(i32 %addr_arg) { | 61 define internal void @store_i8(i32 %addr_arg) { |
| 62 entry: | 62 entry: |
| 63 %__1 = inttoptr i32 %addr_arg to i8* | 63 %__1 = inttoptr i32 %addr_arg to i8* |
| 64 store i8 1, i8* %__1, align 1 | 64 store i8 1, i8* %__1, align 1 |
| 65 ret void | 65 ret void |
| 66 | 66 |
| 67 ; CHECK: Initial CFG | 67 ; CHECK: Initial CFG |
| 68 ; CHECK: entry: | 68 ; CHECK: entry: |
| 69 ; CHECK-NEXT: store i8 1, i8* %addr_arg, align 1 | 69 ; CHECK-NEXT: store i8 1, i8* %addr_arg, align 1 |
| 70 ; CHECK-NEXT: ret void | 70 ; CHECK-NEXT: ret void |
| 71 } | 71 } |
| 72 ; MIPS32-LABEL: store_i8 | 72 ; MIPS32-LABEL: store_i8 |
| 73 ; MIPS32: li | 73 ; MIPS32: li |
| 74 ; MIPS32: sw | 74 ; MIPS32: sb |
| 75 |
| 76 define internal void @store_f32(float* %faddr_arg) { |
| 77 entry: |
| 78 store float 1.000000e+00, float* %faddr_arg, align 4 |
| 79 ret void |
| 80 |
| 81 ; CHECK: Initial CFG |
| 82 ; CHECK: entry: |
| 83 ; CHECK-NEXT: store float 1.000000e+00, float* %faddr_arg, align 4 |
| 84 ; CHECK-NEXT: ret void |
| 85 } |
| 86 ; MIPS32-LABEL: store_f32 |
| 87 ; MIPS32: lui |
| 88 ; MIPS32: lwc1 |
| 89 ; MIPS32: swc1 |
| 90 |
| 91 define internal void @store_f64(double* %daddr_arg) { |
| 92 entry: |
| 93 store double 1.000000e+00, double* %daddr_arg, align 8 |
| 94 ret void |
| 95 |
| 96 ; CHECK: Initial CFG |
| 97 ; CHECK: entry: |
| 98 ; CHECK-NEXT: store double 1.000000e+00, double* %daddr_arg, align 8 |
| 99 ; CHECK-NEXT: ret void |
| 100 } |
| 101 ; MIPS32-LABEL: store_f64 |
| 102 ; MIPS32: lui |
| 103 ; MIPS32: ldc1 |
| 104 ; MIPS32: sdc1 |
| OLD | NEW |