120
|
1 ; NOTE: Assertions have been autogenerated by update_test_checks.py
|
|
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3
|
120
|
4 @x = weak global i32 0
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 define void @self_assign_1() {
|
120
|
7 ; CHECK-LABEL: @self_assign_1(
|
|
8 ; CHECK-NEXT: entry:
|
|
9 ; CHECK-NEXT: [[TMP:%.*]] = load volatile i32, i32* @x, align 4
|
|
10 ; CHECK-NEXT: store volatile i32 [[TMP]], i32* @x, align 4
|
|
11 ; CHECK-NEXT: br label %return
|
|
12 ; CHECK: return:
|
|
13 ; CHECK-NEXT: ret void
|
|
14 ;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 entry:
|
120
|
16 %tmp = load volatile i32, i32* @x
|
|
17 store volatile i32 %tmp, i32* @x
|
|
18 br label %return
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19
|
120
|
20 return:
|
|
21 ret void
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22 }
|