llvm.org GIT mirror llvm / 8bb2ef4
Adjust grep's for new code sequence. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55320 91177308-0d34-0410-b5e6-96231b3b80d8 Dale Johannesen 11 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32 | grep lwarx | count 3
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep stwcx. | count 3
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep stwcx. | count 4
22
33 define i32 @exchange_and_add(i32* %mem, i32 %val) nounwind {
44 %tmp = call i32 @llvm.atomic.load.add.i32( i32* %mem, i32 %val )
0 ; RUN: llvm-as < %s | llc -march=ppc64 | grep ldarx | count 3
1 ; RUN: llvm-as < %s | llc -march=ppc64 | grep stdcx. | count 3
1 ; RUN: llvm-as < %s | llc -march=ppc64 | grep stdcx. | count 4
22
33 define i64 @exchange_and_add(i64* %mem, i64 %val) nounwind {
44 %tmp = call i64 @llvm.atomic.load.add.i64( i64* %mem, i64 %val )