From 2aab51a11896a4a1bf30c8c7c9c530198c92a75d Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 2 Sep 2014 21:45:50 +0000 Subject: [PATCH] R600/SI: Relax some ordering in tests. This will help with enabling misched git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216971 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/R600/rotl.i64.ll | 12 +++++++----- test/CodeGen/R600/rotl.ll | 26 ++++++++++++++------------ test/CodeGen/R600/rotr.i64.ll | 10 +++++----- test/CodeGen/R600/sext-in-reg.ll | 9 +++++---- 4 files changed, 31 insertions(+), 26 deletions(-) diff --git a/test/CodeGen/R600/rotl.i64.ll b/test/CodeGen/R600/rotl.i64.ll index cf4a40944a2..a221ce3f8bf 100644 --- a/test/CodeGen/R600/rotl.i64.ll +++ b/test/CodeGen/R600/rotl.i64.ll @@ -1,10 +1,11 @@ ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s ; FUNC-LABEL: @s_rotl_i64: -; SI: S_SUB_I32 -; SI: S_LSHR_B64 -; SI: S_LSHL_B64 +; SI-DAG: S_LSHL_B64 +; SI-DAG: S_SUB_I32 +; SI-DAG: S_LSHR_B64 ; SI: S_OR_B64 +; SI: S_ENDPGM define void @s_rotl_i64(i64 addrspace(1)* %in, i64 %x, i64 %y) { entry: %0 = shl i64 %x, %y @@ -16,11 +17,12 @@ entry: } ; FUNC-LABEL: @v_rotl_i64: -; SI: V_LSHL_B64 -; SI: V_SUB_I32 +; SI-DAG: V_LSHL_B64 +; SI-DAG: V_SUB_I32 ; SI: V_LSHR_B64 ; SI: V_OR_B32 ; SI: V_OR_B32 +; SI: S_ENDPGM define void @v_rotl_i64(i64 addrspace(1)* %in, i64 addrspace(1)* %xptr, i64 addrspace(1)* %yptr) { entry: %x = load i64 addrspace(1)* %xptr, align 8 diff --git a/test/CodeGen/R600/rotl.ll b/test/CodeGen/R600/rotl.ll index 83f657fd4cc..8c86fb5aeab 100644 --- a/test/CodeGen/R600/rotl.ll +++ b/test/CodeGen/R600/rotl.ll @@ -20,10 +20,11 @@ entry: } ; FUNC-LABEL: @rotl_v2i32 -; SI: S_SUB_I32 -; SI: V_ALIGNBIT_B32 -; SI: S_SUB_I32 -; SI: V_ALIGNBIT_B32 +; SI-DAG: S_SUB_I32 +; SI-DAG: S_SUB_I32 +; SI-DAG: V_ALIGNBIT_B32 +; SI-DAG: V_ALIGNBIT_B32 +; SI: S_ENDPGM define void @rotl_v2i32(<2 x i32> addrspace(1)* %in, <2 x i32> %x, <2 x i32> %y) { entry: %0 = shl <2 x i32> %x, %y @@ -35,14 +36,15 @@ entry: } ; FUNC-LABEL: @rotl_v4i32 -; SI: S_SUB_I32 -; SI: V_ALIGNBIT_B32 -; SI: S_SUB_I32 -; SI: V_ALIGNBIT_B32 -; SI: S_SUB_I32 -; SI: V_ALIGNBIT_B32 -; SI: S_SUB_I32 -; SI: V_ALIGNBIT_B32 +; SI-DAG: S_SUB_I32 +; SI-DAG: V_ALIGNBIT_B32 +; SI-DAG: S_SUB_I32 +; SI-DAG: V_ALIGNBIT_B32 +; SI-DAG: S_SUB_I32 +; SI-DAG: V_ALIGNBIT_B32 +; SI-DAG: S_SUB_I32 +; SI-DAG: V_ALIGNBIT_B32 +; SI: S_ENDPGM define void @rotl_v4i32(<4 x i32> addrspace(1)* %in, <4 x i32> %x, <4 x i32> %y) { entry: %0 = shl <4 x i32> %x, %y diff --git a/test/CodeGen/R600/rotr.i64.ll b/test/CodeGen/R600/rotr.i64.ll index c264751baeb..08dcd520484 100644 --- a/test/CodeGen/R600/rotr.i64.ll +++ b/test/CodeGen/R600/rotr.i64.ll @@ -1,8 +1,8 @@ ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s ; FUNC-LABEL: @s_rotr_i64 -; SI: S_LSHR_B64 -; SI: S_SUB_I32 +; SI-DAG: S_SUB_I32 +; SI-DAG: S_LSHR_B64 ; SI: S_LSHL_B64 ; SI: S_OR_B64 define void @s_rotr_i64(i64 addrspace(1)* %in, i64 %x, i64 %y) { @@ -16,9 +16,9 @@ entry: } ; FUNC-LABEL: @v_rotr_i64 -; SI: V_LSHR_B64 -; SI: V_SUB_I32 -; SI: V_LSHL_B64 +; SI-DAG: V_SUB_I32 +; SI-DAG: V_LSHR_B64 +; SI-DAG: V_LSHL_B64 ; SI: V_OR_B32 ; SI: V_OR_B32 define void @v_rotr_i64(i64 addrspace(1)* %in, i64 addrspace(1)* %xptr, i64 addrspace(1)* %yptr) { diff --git a/test/CodeGen/R600/sext-in-reg.ll b/test/CodeGen/R600/sext-in-reg.ll index 14f1cdf3b95..ba0dbcb2840 100644 --- a/test/CodeGen/R600/sext-in-reg.ll +++ b/test/CodeGen/R600/sext-in-reg.ll @@ -195,10 +195,11 @@ define void @sext_in_reg_i1_in_i32_other_amount(i32 addrspace(1)* %out, i32 %a, } ; FUNC-LABEL: @sext_in_reg_v2i1_in_v2i32_other_amount -; SI: S_LSHL_B32 [[REG0:s[0-9]+]], {{s[0-9]}}, 6 -; SI: S_ASHR_I32 {{s[0-9]+}}, [[REG0]], 7 -; SI: S_LSHL_B32 [[REG1:s[0-9]+]], {{s[0-9]}}, 6 -; SI: S_ASHR_I32 {{s[0-9]+}}, [[REG1]], 7 +; SI-DAG: S_LSHL_B32 [[REG0:s[0-9]+]], {{s[0-9]}}, 6 +; SI-DAG: S_ASHR_I32 {{s[0-9]+}}, [[REG0]], 7 +; SI-DAG: S_LSHL_B32 [[REG1:s[0-9]+]], {{s[0-9]}}, 6 +; SI-DAG: S_ASHR_I32 {{s[0-9]+}}, [[REG1]], 7 +; SI: S_ENDPGM ; EG: MEM_{{.*}} STORE_{{.*}} [[RES:T[0-9]+]]{{\.[XYZW][XYZW]}}, [[ADDR:T[0-9]+.[XYZW]]] ; EG-NOT: BFE -- 2.34.1