llvm.org GIT mirror llvm / 15beaf7
Testcase for PR179 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10455 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 volatile | grep Loop
1
2 %X = global int 7
3
4 void %testfunc(int %i) {
5 br label %Loop
6
7 Loop:
8 %x = volatile load int* %X ; Should not promote this to a register
9 %x2 = add int %x, 1
10 store int %x2, int* %X
11 br bool true, label %Out, label %Loop
12
13 Out:
14 ret void
15 }
16