; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s --check-prefix PTX
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s --check-prefix PTX
-; RUN: opt -temporarily-allow-old-pass-syntax -mtriple=nvptx-- < %s -S -infer-address-spaces | FileCheck %s --check-prefix IR
-; RUN: opt -temporarily-allow-old-pass-syntax -mtriple=nvptx64-- < %s -S -infer-address-spaces | FileCheck %s --check-prefix IR
+; RUN: opt -mtriple=nvptx-- < %s -S -passes=infer-address-spaces | FileCheck %s --check-prefix IR
+; RUN: opt -mtriple=nvptx64-- < %s -S -passes=infer-address-spaces | FileCheck %s --check-prefix IR
; RUN: %if ptxas %{ llc < %s -march=nvptx -mcpu=sm_20 | %ptxas-verify %}
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck -allow-deprecated-dag-overlap %s
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck -allow-deprecated-dag-overlap %s
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=nvptx-nvidia-cuda -nvvm-intr-range \
+; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -passes=nvvm-intr-range \
; RUN: | FileCheck -allow-deprecated-dag-overlap --check-prefix=RANGE --check-prefix=RANGE_20 %s
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=nvptx-nvidia-cuda -passes=nvvm-intr-range \
+; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -passes=nvvm-intr-range \
; RUN: | FileCheck -allow-deprecated-dag-overlap --check-prefix=RANGE --check-prefix=RANGE_20 %s
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=nvptx-nvidia-cuda \
-; RUN: -nvvm-intr-range -nvvm-intr-range-sm=30 \
+; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda \
+; RUN: -passes=nvvm-intr-range -nvvm-intr-range-sm=30 \
; RUN: | FileCheck -allow-deprecated-dag-overlap --check-prefix=RANGE --check-prefix=RANGE_30 %s
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=nvptx-nvidia-cuda \
+; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda \
; RUN: -passes=nvvm-intr-range -nvvm-intr-range-sm=30 \
; RUN: | FileCheck -allow-deprecated-dag-overlap --check-prefix=RANGE --check-prefix=RANGE_30 %s
; RUN: %if ptxas %{ llc < %s -march=nvptx -mcpu=sm_20 | %ptxas-verify %}
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -instcombine -S -mtriple=nvptx-nvidia-cuda -march=nvptx64 \
+; RUN: opt < %s -passes=instcombine -S -mtriple=nvptx-nvidia-cuda -march=nvptx64 \
; RUN: -mcpu=sm_80 -mattr=+ptx70 | \
; RUN: FileCheck %s
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=nvptx-nvidia-cuda -nvvm-reflect | FileCheck %s
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=nvptx-nvidia-cuda -passes=nvvm-reflect | FileCheck %s
+; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -passes=nvvm-reflect | FileCheck %s
+; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -passes=nvvm-reflect | FileCheck %s
declare i32 @__nvvm_reflect(i8*)
@str = private unnamed_addr addrspace(1) constant [11 x i8] c"__CUDA_FTZ\00"
; Checks that speculative-execution only runs on divergent targets, if you pass
; -spec-exec-only-if-divergent-target.
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=nvptx-nvidia-cuda -speculative-execution | \
+; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -passes=speculative-execution | \
; RUN: FileCheck --check-prefix=ON %s
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=nvptx-nvidia-cuda -speculative-execution \
+; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -passes=speculative-execution \
; RUN: -spec-exec-only-if-divergent-target | \
; RUN: FileCheck --check-prefix=ON %s
-; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -speculative-execution -spec-exec-only-if-divergent-target | \
+; RUN: opt < %s -S -passes=speculative-execution -spec-exec-only-if-divergent-target | \
; RUN: FileCheck --check-prefix=OFF %s
; Hoist in if-then pattern.