Re-implement the main strength-reduction portion of LoopStrengthReduction.
[oota-llvm.git] / test / CodeGen / X86 / rdtsc.ll
1 ; RUN: llc < %s -march=x86 | grep rdtsc
2 ; RUN: llc < %s -march=x86-64 | grep rdtsc
3 declare i64 @llvm.readcyclecounter()
4
5 define i64 @foo() {
6         %tmp.1 = call i64 @llvm.readcyclecounter( )             ; <i64> [#uses=1]
7         ret i64 %tmp.1
8 }