Skip to content

Commit 0a98962

Browse files
committed
[NVPTX] Fix lit test issue from used_bytes_mask
1 parent 2ab198f commit 0a98962

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

llvm/test/CodeGen/NVPTX/LoadStoreVectorizer.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2-
; RUN: llc < %s | FileCheck -check-prefix=ENABLED %s
3-
; RUN: llc -disable-nvptx-load-store-vectorizer < %s | FileCheck -check-prefix=DISABLED %s
4-
; RUN: %if ptxas %{ llc < %s | %ptxas-verify %}
5-
; RUN: %if ptxas %{ llc -disable-nvptx-load-store-vectorizer < %s | %ptxas-verify %}
2+
; RUN: llc -march=nvptx64 -mcpu=sm_90 -mattr=+ptx88 < %s | FileCheck -check-prefix=ENABLED %s
3+
; RUN: llc -march=nvptx64 -mcpu=sm_90 -mattr=+ptx88 -disable-nvptx-load-store-vectorizer < %s | FileCheck -check-prefix=DISABLED %s
4+
; RUN: %if ptxas-sm_90 && ptxas-isa-8.8 %{ llc -march=nvptx64 -mcpu=sm_90 -mattr=+ptx88 < %s | %ptxas-verify -arch=sm_90 %}
5+
; RUN: %if ptxas-sm_90 && ptxas-isa-8.8 %{ llc -march=nvptx64 -mcpu=sm_90 -mattr=+ptx88 -disable-nvptx-load-store-vectorizer < %s | %ptxas-verify -arch=sm_90 %}
66

77
target triple = "nvptx64-nvidia-cuda"
88

@@ -52,7 +52,7 @@ define half @fh(ptr %p) {
5252
; ENABLED-NEXT: ld.param.b64 %rd1, [fh_param_0];
5353
; ENABLED-NEXT: .pragma "used_bytes_mask 0x3ff";
5454
; ENABLED-NEXT: ld.v4.b32 {%r1, %r2, %r3, %r4}, [%rd1];
55-
; ENABLED-NEXT: { .reg .b16 tmp; mov.b32 {%rs1, tmp}, %r3; }
55+
; ENABLED-NEXT: mov.b32 {%rs1, _}, %r3;
5656
; ENABLED-NEXT: mov.b32 {%rs2, %rs3}, %r2;
5757
; ENABLED-NEXT: mov.b32 {%rs4, %rs5}, %r1;
5858
; ENABLED-NEXT: cvt.f32.f16 %r5, %rs5;

llvm/test/CodeGen/NVPTX/param-vectorize-device.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc < %s -mtriple=nvptx64-unknown-unknown | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64-unknown-unknown | %ptxas-verify %}
1+
; RUN: llc -march=nvptx64 -mcpu=sm_90 -mattr=+ptx88 < %s | FileCheck %s
2+
; RUN: %if ptxas-sm_90 && ptxas-isa-8.8 %{ llc -march=nvptx64 -mcpu=sm_90 -mattr=+ptx88 < %s | %ptxas-verify -arch=sm_90 %}
33
;
44
; Check that parameters of a __device__ function with private or internal
55
; linkage called from a __global__ (kernel) function get increased alignment,

0 commit comments

Comments
 (0)