+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
+# RUN: llc -mtriple=x86_64-- -mattr=+avx512f -o - %s -run-pass=postrapseudos -verify-machineinstrs | FileCheck %s
+
# Test that we emit VPXORD with ZMM registers instead of YMM
# registers when we do not have VLX.
-#
-# RUN: llc -mtriple=x86_64-- -mattr=+avx512f -o - %s | FileCheck %s
-# CHECK: vpxord %zmm16, %zmm16, %zmm16
+
--- |
; ModuleID = 'test.ll'
source_filename = "test.ll"
machineFunctionInfo: {}
body: |
bb.0.bb0:
+ ; CHECK-LABEL: name: main
+ ; CHECK: $zmm16 = VPXORDZrr undef $zmm16, undef $zmm16
+ ; CHECK: VMOVAPSZmr $rip, 1, $noreg, @tst_, $noreg, killed renamable $zmm16 :: (store 32 into %ir.lsr.iv1, align 64)
+ ; CHECK: RET 0
renamable $ymm16 = AVX512_256_SET0
VMOVAPSZmr $rip, 1, $noreg, @tst_, $noreg, killed renamable $zmm16 :: (store 32 into %ir.lsr.iv1, align 64)
RET 0