Reapply [FastISel][AArch64] Make use of the zero register when possible (r215591).
[oota-llvm.git] / test / CodeGen / AArch64 / arm64-fast-isel.ll
index 0194b3a6c2d4479cb7d670c7519596ec2b8dfb34..a71bdb2a3df4ca57af5916ce508842cf4b71e978 100644 (file)
@@ -66,7 +66,7 @@ entry:
 define void @t4(i32 *%ptr) nounwind {
 entry:
 ; CHECK-LABEL: t4:
-; CHECK: movz w8, #0
+; CHECK: mov w8, wzr
 ; CHECK: stur w8, [x0, #-4]
 ; CHECK: ret
   %0 = getelementptr i32 *%ptr, i32 -1
@@ -77,7 +77,7 @@ entry:
 define void @t5(i32 *%ptr) nounwind {
 entry:
 ; CHECK-LABEL: t5:
-; CHECK: movz w8, #0
+; CHECK: mov w8, wzr
 ; CHECK: stur w8, [x0, #-256]
 ; CHECK: ret
   %0 = getelementptr i32 *%ptr, i32 -64