Skip to content

Commit 42f465c

Browse files
committed
Address review comments
1 parent 4fbf917 commit 42f465c

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

clang/test/CodeGen/RISCV/riscv-zihintpause.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
22
// RUN: %clang_cc1 -triple riscv32 -target-feature +zihintpause -emit-llvm %s -o - \
33
// RUN: | FileCheck %s
4-
5-
#include <stdint.h>
4+
// RUN: %clang_cc1 -triple riscv64 -target-feature +zihintpause -emit-llvm %s -o - \
5+
// RUN: | FileCheck %s
66

77
// CHECK-LABEL: @test_builtin_pause(
88
// CHECK-NEXT: entry:

llvm/lib/Target/RISCV/RISCVInstrInfo.td

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,15 @@ def : Pat<(binop_allwusers<add> GPR:$rs1, immop_oneuse<AddiPair>:$rs2),
21982198
def : Pat<(i64 (add GPR:$rs1, negImm:$rs2)), (SUB GPR:$rs1, negImm:$rs2)>;
21992199
}
22002200

2201+
//===----------------------------------------------------------------------===//
2202+
// Zihintpause
2203+
//===----------------------------------------------------------------------===//
2204+
2205+
// Zihintpause
2206+
let Predicates = [HasStdExtZihintpause] in {
2207+
def : Pat<(int_riscv_pause), (FENCE 0x1, 0x0)>;
2208+
}
2209+
22012210
//===----------------------------------------------------------------------===//
22022211
// Standard extensions
22032212
//===----------------------------------------------------------------------===//
@@ -2242,9 +2251,6 @@ include "RISCVInstrInfoZclsd.td"
22422251
// Short Forward Branch
22432252
include "RISCVInstrInfoSFB.td"
22442253

2245-
// Zihintpause extensions
2246-
include "RISCVInstrInfoZihintpause.td"
2247-
22482254
//===----------------------------------------------------------------------===//
22492255
// Vendor extensions
22502256
//===----------------------------------------------------------------------===//

llvm/lib/Target/RISCV/RISCVInstrInfoZihintpause.td

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)