Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/X86/volatile.ll @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | afa8332a0e37 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:95c75e76d11b |
---|---|
1 ; RUN: llc < %s -march=x86 -mattr=sse2 | grep movsd | count 5 | |
2 ; RUN: llc < %s -march=x86 -mattr=sse2 -O0 | grep -v esp | grep movsd | count 5 | |
3 | |
4 @x = external global double | |
5 | |
6 define void @foo() nounwind { | |
7 %a = load volatile double* @x | |
8 store volatile double 0.0, double* @x | |
9 store volatile double 0.0, double* @x | |
10 %b = load volatile double* @x | |
11 ret void | |
12 } | |
13 | |
14 define void @bar() nounwind { | |
15 %c = load volatile double* @x | |
16 ret void | |
17 } |