mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
NFC - Various typo fixes in tests
llvm-svn: 336268
This commit is contained in:
parent
cbd4b2fcb6
commit
0b1675d3f5
@ -4,7 +4,7 @@
|
||||
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
|
||||
target triple = "arm64--linux-gnu"
|
||||
|
||||
; CHECK-LABLE: @aarch64_tree_tests_and
|
||||
; CHECK-LABEL: @aarch64_tree_tests_and
|
||||
; CHECK: .hword 32768
|
||||
; CHECK: .hword 32767
|
||||
; CHECK: .hword 4664
|
||||
@ -22,7 +22,7 @@ entry:
|
||||
ret <8 x i16> %ret
|
||||
}
|
||||
|
||||
; CHECK-LABLE: @aarch64_tree_tests_or
|
||||
; CHECK-LABEL: @aarch64_tree_tests_or
|
||||
; CHECK: .hword 32768
|
||||
; CHECK: .hword 32766
|
||||
; CHECK: .hword 4664
|
||||
|
@ -4,7 +4,7 @@ target triple = "arm64--linux-gnu"
|
||||
|
||||
; Function Attrs: nounwind readnone
|
||||
define i32 @test1(i8 %a) {
|
||||
; CHECK-LABLE: @test1
|
||||
; CHECK-LABEL: @test1
|
||||
; CHECK: ubfx {{w[0-9]+}}, w0, #3, #5
|
||||
entry:
|
||||
%conv = zext i8 %a to i32
|
||||
@ -14,7 +14,7 @@ entry:
|
||||
|
||||
; Function Attrs: nounwind readnone
|
||||
define i32 @test2(i8 %a) {
|
||||
; CHECK-LABLE: @test2
|
||||
; CHECK-LABEL: @test2
|
||||
; CHECK: and {{w[0-9]+}}, w0, #0xff
|
||||
; CHECK: ubfx {{w[0-9]+}}, w0, #3, #5
|
||||
entry:
|
||||
|
@ -8,7 +8,7 @@ define i32 @fct(i32 %i1, i32 %i2) {
|
||||
; Sign extension is used more than once, thus it should not be folded.
|
||||
; CodeGenPrepare is not sharing sext across uses, thus this is folded because
|
||||
; of that.
|
||||
; _CHECK-NOT_: , sxtw]
|
||||
; _CHECK-NOT: , sxtw]
|
||||
entry:
|
||||
%idxprom = sext i32 %i1 to i64
|
||||
%0 = load i8*, i8** @block, align 8
|
||||
|
@ -79,9 +79,9 @@ define i32 @foo7(i32 %a, i32 %b) nounwind {
|
||||
entry:
|
||||
; CHECK-LABEL: foo7:
|
||||
; CHECK: sub
|
||||
; CHECK-next: adds
|
||||
; CHECK-next: csneg
|
||||
; CHECK-next: b
|
||||
; CHECK-NEXT: adds
|
||||
; CHECK-NEXT: csneg
|
||||
; CHECK-NEXT: b
|
||||
%sub = sub nsw i32 %a, %b
|
||||
%cmp = icmp sgt i32 %sub, -1
|
||||
%sub3 = sub nsw i32 0, %sub
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llc < %s -O3 -mtriple=aarch64-eabi | FileCheck %s
|
||||
|
||||
define i16 @test_1cmp_signed_1(i16* %ptr1) {
|
||||
; CHECK-LABLE: @test_1cmp_signed_1
|
||||
; CHECK-LABEL: @test_1cmp_signed_1
|
||||
; CHECK: ldrsh
|
||||
; CHECK-NEXT: cmn
|
||||
entry:
|
||||
@ -16,7 +16,7 @@ if.then:
|
||||
}
|
||||
|
||||
define i16 @test_1cmp_signed_2(i16* %ptr1) {
|
||||
; CHECK-LABLE: @test_1cmp_signed_2
|
||||
; CHECK-LABEL: @test_1cmp_signed_2
|
||||
; CHECK: ldrsh
|
||||
; CHECK-NEXT: cmn
|
||||
entry:
|
||||
@ -31,7 +31,7 @@ if.then:
|
||||
}
|
||||
|
||||
define i16 @test_1cmp_unsigned_1(i16* %ptr1) {
|
||||
; CHECK-LABLE: @test_1cmp_unsigned_1
|
||||
; CHECK-LABEL: @test_1cmp_unsigned_1
|
||||
; CHECK: ldrsh
|
||||
; CHECK-NEXT: cmn
|
||||
entry:
|
||||
|
@ -34,7 +34,7 @@ define i32* @test_array3(i32* %a) {
|
||||
define i32* @test_array4(i32* %a) {
|
||||
; CHECK-LABEL: test_array4
|
||||
; CHECK: mov [[REG:x[0-9]+]], #4104
|
||||
; CHECK-NEXR: add x0, x0, [[REG]]
|
||||
; CHECK-NEXT: add x0, x0, [[REG]]
|
||||
%1 = getelementptr inbounds i32, i32* %a, i64 1026
|
||||
ret i32* %1
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ define arm_aapcscc i32* @test_call_simple_stack_params(i32 *%a, i32 %b) {
|
||||
; CHECK: ADJCALLSTACKDOWN 8, 0, 14, $noreg, implicit-def $sp, implicit $sp
|
||||
; CHECK-DAG: $r0 = COPY [[BVREG]]
|
||||
; CHECK-DAG: $r1 = COPY [[AVREG]]
|
||||
; CHECK-DxAG: $r2 = COPY [[BVREG]]
|
||||
; CHECK-DAG: $r2 = COPY [[BVREG]]
|
||||
; CHECK-DAG: $r3 = COPY [[AVREG]]
|
||||
; CHECK: [[SP1:%[0-9]+]]:_(p0) = COPY $sp
|
||||
; CHECK: [[OFF1:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
||||
|
@ -396,9 +396,9 @@ define void @store_store_release(i32* %mem1, i32 %val1, i32* %mem2, i32 %val2) {
|
||||
; CHECK-T1-M0: str r3, [r2]
|
||||
|
||||
; CHECK-BAREMETAL-NOT: dmb
|
||||
; CHECK-BAREMTEAL: str r1, [r0]
|
||||
; CHECK-BAREMETAL: str r1, [r0]
|
||||
; CHECK-BAREMETAL-NOT: dmb
|
||||
; CHECK-BAREMTEAL: str r3, [r2]
|
||||
; CHECK-BAREMETAL: str r3, [r2]
|
||||
|
||||
ret void
|
||||
}
|
||||
|
@ -35,16 +35,16 @@ define void @test2() {
|
||||
; CHECK-ARM: sub sp, sp, #4096
|
||||
; CHECK-ARM: .cfi_endproc
|
||||
|
||||
; CHECK-ARM-FP_ELIM-LABEL: test2:
|
||||
; CHECK-ARM-FP_ELIM: .cfi_startproc
|
||||
; CHECK-ARM-FP_ELIM: push {r4, r5}
|
||||
; CHECK-ARM-FP_ELIM: .cfi_def_cfa_offset 8
|
||||
; CHECK-ARM-FP_ELIM: .cfi_offset 54, -4
|
||||
; CHECK-ARM-FP_ELIM: .cfi_offset r4, -8
|
||||
; CHECK-ARM-FP_ELIM: sub sp, sp, #72
|
||||
; CHECK-ARM-FP_ELIM: sub sp, sp, #4096
|
||||
; CHECK-ARM-FP_ELIM: .cfi_def_cfa_offset 4176
|
||||
; CHECK-ARM-FP_ELIM: .cfi_endproc
|
||||
; CHECK-ARM-FP-ELIM-LABEL: test2:
|
||||
; CHECK-ARM-FP-ELIM: .cfi_startproc
|
||||
; CHECK-ARM-FP-ELIM: push {r4, r5}
|
||||
; CHECK-ARM-FP-ELIM: .cfi_def_cfa_offset 8
|
||||
; CHECK-ARM-FP-ELIM: .cfi_offset 54, -4
|
||||
; CHECK-ARM-FP-ELIM: .cfi_offset r4, -8
|
||||
; CHECK-ARM-FP-ELIM: sub sp, sp, #72
|
||||
; CHECK-ARM-FP-ELIM: sub sp, sp, #4096
|
||||
; CHECK-ARM-FP-ELIM: .cfi_def_cfa_offset 4176
|
||||
; CHECK-ARM-FP-ELIM: .cfi_endproc
|
||||
|
||||
define i32 @test3() {
|
||||
%retval = alloca i32, align 4
|
||||
|
@ -20,14 +20,14 @@
|
||||
; * all functions use base AAPCS
|
||||
; * floating point instructions permitted, so __aeabi_ helpers only
|
||||
; expected when there is no available instruction.
|
||||
; CHECK-HARD-FP-SP -mfloat-abi=hardfp (single precision instructions)
|
||||
; CHECK-HARDFP-SP -mfloat-abi=hardfp (single precision instructions)
|
||||
; * all non Runtime ABI helper functions use AAPCS VFP
|
||||
; * floating point instructions permitted, so __aeabi_ helpers only
|
||||
; expected when there is no available instruction.
|
||||
; CHECK-HARD-FP-DP -mfloat-abi=hardfp (double precision instructions)
|
||||
; CHECK-HARD_FP_SPONLY -mfloat-abi=hardfp (double precision but single
|
||||
; CHECK-HARDFP-DP -mfloat-abi=hardfp (double precision instructions)
|
||||
; CHECK-HARDFP-SPONLY -mfloat-abi=hardfp (double precision but single
|
||||
; precision only FPU)
|
||||
; * as CHECK-HARD-FP-SP, but we split up the double precision helper
|
||||
; * as CHECK-HARDFP-SP, but we split up the double precision helper
|
||||
; functions so we can test a single precision only FPU, which has to use
|
||||
; helper function for all double precision operations.
|
||||
|
||||
|
@ -29,7 +29,7 @@ entry:
|
||||
; CHECK-HARDFLOAT-EABI: __aeabi_h2f
|
||||
; CHECK-HARDFLOAT-GNU: __gnu_h2f_ieee
|
||||
; CHECK-FP16: vcvtb.f32.f16
|
||||
; CHECK-ARMv8: vcvtb.f32.f16
|
||||
; CHECK-ARMV8: vcvtb.f32.f16
|
||||
; CHECK-SOFTFLOAT-EABI: __aeabi_h2f
|
||||
; CHECK-SOFTFLOAT-GNU: __gnu_h2f_ieee
|
||||
%3 = tail call float @llvm.convert.from.fp16.f32(i16 %1)
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
define i32 @test_lshr_and1(i32 %x) {
|
||||
entry:
|
||||
;CHECK-LABLE: test_lshr_and1:
|
||||
;CHECK-LABEL: test_lshr_and1:
|
||||
;CHECK-COMMON: movw r1, :lower16:array
|
||||
;CHECK-COMMON-NEXT: and r0, r0, #12
|
||||
;CHECK-COMMON-NEXT: movt r1, :upper16:array
|
||||
|
@ -108,7 +108,7 @@ define i16 @myctlz_ret16_2(i16 %a) {
|
||||
define void @myctlz_store16(i16 %a, i16* %b) {
|
||||
; CHECK: ld.param.
|
||||
; CHECK-NEXT: cvt.u32.u16
|
||||
; CHECK-NET: clz.b32
|
||||
; CHECK-NEXT: clz.b32
|
||||
; CHECK-DAG: cvt.u16.u32
|
||||
; CHECK-DAG: sub.
|
||||
; CHECK: st.{{[a-z]}}16
|
||||
@ -121,7 +121,7 @@ define void @myctlz_store16(i16 %a, i16* %b) {
|
||||
define void @myctlz_store16_2(i16 %a, i16* %b) {
|
||||
; CHECK: ld.param.
|
||||
; CHECK-NEXT: cvt.u32.u16
|
||||
; CHECK-NET: clz.b32
|
||||
; CHECK-NEXT: clz.b32
|
||||
; CHECK-DAG: cvt.u16.u32
|
||||
; CHECK-DAG: sub.
|
||||
; CHECK: st.{{[a-z]}}16
|
||||
|
@ -30,7 +30,7 @@ define <2 x i64> @test_vsrd(<2 x i64> %x, <2 x i64> %y) nounwind readnone {
|
||||
define <2 x i64> @test_vsrad(<2 x i64> %x, <2 x i64> %y) nounwind readnone {
|
||||
%tmp = ashr <2 x i64> %x, %y
|
||||
ret <2 x i64> %tmp
|
||||
; CHECK-LABER: @test_vsrad
|
||||
; CHECK-LABEL: @test_vsrad
|
||||
; CHECK: vsrad 2, 2, 3
|
||||
}
|
||||
|
||||
|
@ -151,21 +151,21 @@ define i1 @test_netf2(fp128 %a, fp128 %b) #0 {
|
||||
}
|
||||
|
||||
define i1 @test_gesf2(float %a, float %b) #0 {
|
||||
; CHECK-LABLE: test_gesf2:
|
||||
; CHECK-LABEL: test_gesf2:
|
||||
; CHECK: call __gesf2
|
||||
%cmp = fcmp oge float %a, %b
|
||||
ret i1 %cmp
|
||||
}
|
||||
|
||||
define i1 @test_gedf2(double %a, double %b) #0 {
|
||||
; CHECK-LABLE: test_gedf2:
|
||||
; CHECK-LABEL: test_gedf2:
|
||||
; CHECK: call __gedf2
|
||||
%cmp = fcmp oge double %a, %b
|
||||
ret i1 %cmp
|
||||
}
|
||||
|
||||
define i1 @test_getf2(fp128 %a, fp128 %b) #0 {
|
||||
; CHECK-LABLE: test_getf2:
|
||||
; CHECK-LABEL: test_getf2:
|
||||
; CHECK: call __getf2
|
||||
%cmp = fcmp oge fp128 %a, %b
|
||||
ret i1 %cmp
|
||||
|
@ -36,9 +36,9 @@ define i32 @load_test0_noinbounds() {
|
||||
; CHECK-NEXT: param i32{{$}}
|
||||
; CHECK-NEXT: result i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEX T: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEX T: return $pop2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEXT: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEXT: return $pop2{{$}}
|
||||
define i32 @load_test1(i32 %n) {
|
||||
%add = add nsw i32 %n, 10
|
||||
%arrayidx = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %add
|
||||
@ -50,9 +50,9 @@ define i32 @load_test1(i32 %n) {
|
||||
; CHECK-NEXT: param i32{{$}}
|
||||
; CHECK-NEXT: result i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEX T: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEX T: return $pop2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEXT: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEXT: return $pop2{{$}}
|
||||
define i32 @load_test2(i32 %n) {
|
||||
%add = add nsw i32 10, %n
|
||||
%arrayidx = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %add
|
||||
@ -64,9 +64,9 @@ define i32 @load_test2(i32 %n) {
|
||||
; CHECK-NEXT: param i32{{$}}
|
||||
; CHECK-NEXT: result i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEX T: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEX T: return $pop2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEXT: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEXT: return $pop2{{$}}
|
||||
define i32 @load_test3(i32 %n) {
|
||||
%add.ptr = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %n
|
||||
%add.ptr1 = getelementptr inbounds i32, i32* %add.ptr, i32 10
|
||||
@ -78,9 +78,9 @@ define i32 @load_test3(i32 %n) {
|
||||
; CHECK-NEXT: param i32{{$}}
|
||||
; CHECK-NEXT: result i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEX T: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEX T: return $pop2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEXT: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEXT: return $pop2{{$}}
|
||||
define i32 @load_test4(i32 %n) {
|
||||
%add.ptr = getelementptr inbounds i32, i32* getelementptr inbounds ([0 x i32], [0 x i32]* @g, i32 0, i32 10), i32 %n
|
||||
%t = load i32, i32* %add.ptr, align 4
|
||||
@ -91,9 +91,9 @@ define i32 @load_test4(i32 %n) {
|
||||
; CHECK-NEXT: param i32{{$}}
|
||||
; CHECK-NEXT: result i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEX T: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEX T: return $pop2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEXT: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEXT: return $pop2{{$}}
|
||||
define i32 @load_test5(i32 %n) {
|
||||
%add.ptr = getelementptr inbounds i32, i32* getelementptr inbounds ([0 x i32], [0 x i32]* @g, i32 0, i32 10), i32 %n
|
||||
%t = load i32, i32* %add.ptr, align 4
|
||||
@ -104,9 +104,9 @@ define i32 @load_test5(i32 %n) {
|
||||
; CHECK-NEXT: param i32{{$}}
|
||||
; CHECK-NEXT: result i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEX T: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEX T: return $pop2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEXT: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEXT: return $pop2{{$}}
|
||||
define i32 @load_test6(i32 %n) {
|
||||
%add = add nsw i32 %n, 10
|
||||
%add.ptr = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %add
|
||||
@ -118,9 +118,9 @@ define i32 @load_test6(i32 %n) {
|
||||
; CHECK-NEXT: param i32{{$}}
|
||||
; CHECK-NEXT: result i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEX T: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEX T: return $pop2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEXT: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEXT: return $pop2{{$}}
|
||||
define i32 @load_test7(i32 %n) {
|
||||
%add.ptr = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %n
|
||||
%add.ptr1 = getelementptr inbounds i32, i32* %add.ptr, i32 10
|
||||
@ -132,9 +132,9 @@ define i32 @load_test7(i32 %n) {
|
||||
; CHECK-NEXT: param i32{{$}}
|
||||
; CHECK-NEXT: result i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEX T: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEX T: return $pop2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEXT: i32.load $push2=, g+40($pop1){{$}}
|
||||
; CHECK-NEXT: return $pop2{{$}}
|
||||
define i32 @load_test8(i32 %n) {
|
||||
%add = add nsw i32 10, %n
|
||||
%add.ptr = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %add
|
||||
@ -378,8 +378,8 @@ define void @store_test0_noinbounds(i32 %i) {
|
||||
; CHECK-NEXT: param i32, i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEX T: return{{$}}
|
||||
; CHECK-NEXT: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @store_test1(i32 %n, i32 %i) {
|
||||
%add = add nsw i32 %n, 10
|
||||
%arrayidx = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %add
|
||||
@ -391,8 +391,8 @@ define void @store_test1(i32 %n, i32 %i) {
|
||||
; CHECK-NEXT: param i32, i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEX T: return{{$}}
|
||||
; CHECK-NEXT: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @store_test2(i32 %n, i32 %i) {
|
||||
%add = add nsw i32 10, %n
|
||||
%arrayidx = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %add
|
||||
@ -404,8 +404,8 @@ define void @store_test2(i32 %n, i32 %i) {
|
||||
; CHECK-NEXT: param i32, i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEX T: return{{$}}
|
||||
; CHECK-NEXT: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @store_test3(i32 %n, i32 %i) {
|
||||
%add.ptr = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %n
|
||||
%add.ptr1 = getelementptr inbounds i32, i32* %add.ptr, i32 10
|
||||
@ -417,8 +417,8 @@ define void @store_test3(i32 %n, i32 %i) {
|
||||
; CHECK-NEXT: param i32, i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEX T: return{{$}}
|
||||
; CHECK-NEXT: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @store_test4(i32 %n, i32 %i) {
|
||||
%add.ptr = getelementptr inbounds i32, i32* getelementptr inbounds ([0 x i32], [0 x i32]* @g, i32 0, i32 10), i32 %n
|
||||
store i32 %i, i32* %add.ptr, align 4
|
||||
@ -429,8 +429,8 @@ define void @store_test4(i32 %n, i32 %i) {
|
||||
; CHECK-NEXT: param i32, i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEX T: return{{$}}
|
||||
; CHECK-NEXT: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @store_test5(i32 %n, i32 %i) {
|
||||
%add.ptr = getelementptr inbounds i32, i32* getelementptr inbounds ([0 x i32], [0 x i32]* @g, i32 0, i32 10), i32 %n
|
||||
store i32 %i, i32* %add.ptr, align 4
|
||||
@ -441,8 +441,8 @@ define void @store_test5(i32 %n, i32 %i) {
|
||||
; CHECK-NEXT: param i32, i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEX T: return{{$}}
|
||||
; CHECK-NEXT: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @store_test6(i32 %n, i32 %i) {
|
||||
%add = add nsw i32 %n, 10
|
||||
%add.ptr = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %add
|
||||
@ -454,8 +454,8 @@ define void @store_test6(i32 %n, i32 %i) {
|
||||
; CHECK-NEXT: param i32, i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEX T: return{{$}}
|
||||
; CHECK-NEXT: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @store_test7(i32 %n, i32 %i) {
|
||||
%add.ptr = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %n
|
||||
%add.ptr1 = getelementptr inbounds i32, i32* %add.ptr, i32 10
|
||||
@ -467,8 +467,8 @@ define void @store_test7(i32 %n, i32 %i) {
|
||||
; CHECK-NEXT: param i32, i32{{$}}
|
||||
; CHECK-NEXT: i32.const $push0=, 2{{$}}
|
||||
; CHECK-NEXT: i32.shl $push1=, $0, $pop0{{$}}
|
||||
; CHECK-NEX T: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEX T: return{{$}}
|
||||
; CHECK-NEXT: i32.store g+40($pop1), $1{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @store_test8(i32 %n, i32 %i) {
|
||||
%add = add nsw i32 10, %n
|
||||
%add.ptr = getelementptr inbounds [0 x i32], [0 x i32]* @g, i32 0, i32 %add
|
||||
|
@ -10,7 +10,7 @@ entry:
|
||||
br i1 undef, label %if.then, label %if.end, !dbg !16
|
||||
|
||||
if.then: ; preds = %entry
|
||||
; CHECK-label: if.then:
|
||||
; CHECK-LABEL: if.then:
|
||||
; CHECK: %mul = fmul x86_fp80
|
||||
; CHECK: call void @llvm.dbg.value(metadata x86_fp80 %mul, metadata {{.*}}, metadata !DIExpression())
|
||||
%mul = fmul x86_fp80 undef, undef, !dbg !18
|
||||
@ -18,7 +18,7 @@ if.then: ; preds = %entry
|
||||
br label %if.end, !dbg !20
|
||||
|
||||
if.end: ; preds = %if.then, %entry
|
||||
; CHECK-label: if.end:
|
||||
; CHECK-LABEL: if.end:
|
||||
; CHECK: %r.0 = phi x86_fp80
|
||||
; CHECK: call void @llvm.dbg.value(metadata x86_fp80 %r.0, metadata {{.*}}, metadata !DIExpression())
|
||||
%out = load x86_fp80, x86_fp80* %r, align 16, !dbg !21
|
||||
|
@ -67,7 +67,7 @@
|
||||
# CHECK-NEXT: if (cmp.eq(r17.new,#21)) jump:nt
|
||||
0x11 0x40 0x71 0x70 0x92 0xf5 0x02 0x24
|
||||
# CHECK: r17 = r17
|
||||
# CHECK-NETX: if (cmp.eq(r17.new,#21)) jump:t
|
||||
# CHECK-NEXT: if (cmp.eq(r17.new,#21)) jump:t
|
||||
0x11 0x40 0x71 0x70 0x92 0xd5 0x42 0x24
|
||||
# CHECK: r17 = r17
|
||||
# CHECK-NEXT: if (!cmp.eq(r17.new,#21)) jump:nt
|
||||
|
@ -97,7 +97,7 @@ define i8 @callee_with_alloca() alwaysinline {
|
||||
}
|
||||
|
||||
define void @caller_with_lifetime() {
|
||||
; CHECK-LABLE: @caller_with_lifetime(
|
||||
; CHECK-LABEL: @caller_with_lifetime(
|
||||
; CHECK: call void (...) @llvm.experimental.deoptimize.isVoid(i32 1) [ "deopt"(i8* %t.i) ]
|
||||
; CHECK-NEXT: ret void
|
||||
|
||||
|
@ -198,7 +198,7 @@ define i32 @t3(i32, i32) #0 !prof !0 {
|
||||
; For single-BB loop with <=1 avg trip count, sink load to b1
|
||||
; CHECK: t4
|
||||
; CHECK: .preheader:
|
||||
; CHECK-not: load i32, i32* @g
|
||||
; CHECK-NOT: load i32, i32* @g
|
||||
; CHECK: .b1:
|
||||
; CHECK: load i32, i32* @g
|
||||
; CHECK: .exit:
|
||||
|
@ -43,4 +43,4 @@ entry:
|
||||
!8 = !{!3, !7, i64 4}
|
||||
|
||||
; CHECK-DAG: [[TYPE_char:!.*]] = !{!"omnipotent char", {{.*}}, i64 0}
|
||||
; CHECK-FAG: [[TAG_char]] = !{[[TYPE_char]], [[TYPE_char]], i64 0}
|
||||
; CHECK-DAG: [[TAG_char]] = !{[[TYPE_char]], [[TYPE_char]], i64 0}
|
||||
|
@ -98,7 +98,7 @@ for.end21:
|
||||
;; A[i-1][j-1] = A[i - 1][j-1] + B[i][j];
|
||||
|
||||
; CHECK: Name: InterchangeNotProfitable
|
||||
; CHECK-ENXT: Function: interchange_03
|
||||
; CHECK-NEXT: Function: interchange_03
|
||||
define void @interchange_03(){
|
||||
entry:
|
||||
br label %for1.header
|
||||
@ -136,7 +136,7 @@ for.end19:
|
||||
;; A[i][j] = A[i][j]+k;
|
||||
|
||||
; CHECK: Name: InterchangeNotProfitable
|
||||
; CHECK-ENXT: Function: interchange_04
|
||||
; CHECK-NEXT: Function: interchange_04
|
||||
define void @interchange_04(i32 %k) {
|
||||
entry:
|
||||
br label %for.cond1.preheader
|
||||
|
@ -16,7 +16,7 @@ target triple = "x86_64-unknown-linux-gnu"
|
||||
; widest type in the loop for maximum bandwidth when
|
||||
; -vectorizer-maximize-bandwidth is indicated.
|
||||
;
|
||||
; CHECK-label: foo
|
||||
; CHECK-LABEL: foo
|
||||
; CHECK-AVX1: LV: Selecting VF: 16.
|
||||
; CHECK-AVX2: LV: Selecting VF: 32.
|
||||
define void @foo() {
|
||||
|
@ -7,7 +7,7 @@ target triple = "x86_64-apple-macosx10.11.0"
|
||||
declare cc42 double @llvm.experimental.deoptimize.f64(...)
|
||||
|
||||
define double @caller_3() gc "statepoint-example" {
|
||||
; CHECK-LABELL @caller_3(
|
||||
; CHECK-LABEL: @caller_3(
|
||||
; CHECK: call cc42 token (i64, i32, void ()*, i32, i32, ...) @llvm.experimental.gc.statepoint
|
||||
; CHECK: unreachable
|
||||
|
||||
|
@ -3,11 +3,11 @@ RUN: -debug-line=0x0 | FileCheck %s --check-prefix=CHECK-A
|
||||
|
||||
CHECK-A: debug_line[0x00000000]
|
||||
CHECK-A: Address Line Column File ISA Discriminator Flags
|
||||
CHECK-A-NET: ------------------ ------ ------ ------ --- ------------- -------------
|
||||
CHECK-A-NET: 0x0000000000000000 26 0 1 0 0 is_stmt
|
||||
CHECK-A-NET: 0x0000000000000004 27 10 1 0 0 is_stmt prologue_end
|
||||
CHECK-A-NET: 0x0000000000000009 27 3 1 0 0
|
||||
CHECK-A-NET: 0x0000000000000074 27 3 1 0 0 end_sequence
|
||||
CHECK-A-NEXT: ------------------ ------ ------ ------ --- ------------- -------------
|
||||
CHECK-A-NEXT: 0x0000000000000000 26 0 1 0 0 is_stmt
|
||||
CHECK-A-NEXT: 0x0000000000000004 27 10 1 0 0 is_stmt prologue_end
|
||||
CHECK-A-NEXT: 0x0000000000000009 27 3 1 0 0
|
||||
CHECK-A-NEXT: 0x0000000000000074 27 3 1 0 0 end_sequence
|
||||
CHECK-A-NOT: debug_line[0x0000009a]
|
||||
|
||||
RUN: llvm-dwarfdump %S/../../dsymutil/Inputs/basic-lto-dw4.macho.x86_64.o \
|
||||
|
Loading…
x
Reference in New Issue
Block a user