llvm.org GIT mirror llvm / 5c3e016
CHECK-LABEL-ize one test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213177 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Samsonov 6 years ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
55 target triple = "x86_64-unknown-linux-gnu"
66
77 define i32 @test_load(i32* %a) sanitize_address {
8 ; CHECK: @test_load
8 ; CHECK-LABEL: @test_load
99 ; CHECK-NOT: load
1010 ; CHECK: %[[LOAD_ADDR:[^ ]*]] = ptrtoint i32* %a to i64
1111 ; CHECK: lshr i64 %[[LOAD_ADDR]], 3
3838 }
3939
4040 define void @test_store(i32* %a) sanitize_address {
41 ; CHECK: @test_store
41 ; CHECK-LABEL: @test_store
4242 ; CHECK-NOT: store
4343 ; CHECK: %[[STORE_ADDR:[^ ]*]] = ptrtoint i32* %a to i64
4444 ; CHECK: lshr i64 %[[STORE_ADDR]], 3
8383 ret void
8484 }
8585
86 ; CHECK: define void @alloca_test()
86 ; CHECK-LABEL: define void @alloca_test()
8787 ; CHECK: = alloca
8888 ; CHECK-NOT: = alloca
8989 ; CHECK: ret void
9494 ret void
9595 }
9696
97 ; CHECK: LongDoubleTest
97 ; CHECK-LABEL: LongDoubleTest
9898 ; CHECK: __asan_report_store_n
9999 ; CHECK: __asan_report_store_n
100100 ; CHECK: ret void
107107 ret void
108108 }
109109
110 ; CHECK: i40test
110 ; CHECK-LABEL: i40test
111111 ; CHECK: __asan_report_load_n{{.*}}, i64 5)
112112 ; CHECK: __asan_report_load_n{{.*}}, i64 5)
113113 ; CHECK: __asan_report_store_n{{.*}}, i64 5)
133133 ret void
134134 }
135135
136 ; CHECK: i80test
136 ; CHECK-LABEL: i80test
137137 ; CHECK: __asan_report_load_n{{.*}}, i64 10)
138138 ; CHECK: __asan_report_load_n{{.*}}, i64 10)
139139 ; CHECK: __asan_report_store_n{{.*}}, i64 10)
146146 %tmp1 = load i32* %a
147147 ret i32 %tmp1
148148 }
149 ; CHECK: @f_available_externally
149 ; CHECK-LABEL: @f_available_externally
150150 ; CHECK-NOT: __asan_report
151151 ; CHECK: ret i32
152152