Skip to content

Commit acca08a

Browse files
committed
Add a target-features-cpus test for trail1.
1 parent 8db1c62 commit acca08a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

llvm/test/CodeGen/WebAssembly/target-features-cpus.ll

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
; RUN: llc < %s -mcpu=mvp | FileCheck %s --check-prefixes MVP
22
; RUN: llc < %s -mcpu=generic | FileCheck %s --check-prefixes GENERIC
3+
; RUN: llc < %s -mcpu=trail1 | FileCheck %s --check-prefixes TRAIL1
34
; RUN: llc < %s | FileCheck %s --check-prefixes GENERIC
45
; RUN: llc < %s -mcpu=bleeding-edge | FileCheck %s --check-prefixes BLEEDING-EDGE
56

@@ -27,6 +28,31 @@ target triple = "wasm32-unknown-unknown"
2728
; GENERIC-NEXT: .int8 8
2829
; GENERIC-NEXT: .ascii "sign-ext"
2930

31+
; trail1: +bulk-memory-opt, +call-indirect-overlong, +extended-const, +multivalue, +mutable-globals, +nontrapping-fptoint, +sign-ext
32+
; TRAIL1-LABEL: .custom_section.target_features,"",@
33+
; TRAIL1-NEXT: .int8 6
34+
; TRAIL1-NEXT: .int8 43
35+
; TRAIL1-NEXT: .int8 15
36+
; TRAIL1-NEXT: .int8 "bulk-memory-opt"
37+
; TRAIL1-NEXT: .int8 43
38+
; TRAIL1-NEXT: .int8 22
39+
; TRAIL1-NEXT: .int8 "call-indirect-overlong"
40+
; TRAIL1-NEXT: .int8 43
41+
; TRAIL1-NEXT: .int8 14
42+
; TRAIL1-NEXT: .ascii "extended-const"
43+
; TRAIL1-NEXT: .int8 43
44+
; TRAIL1-NEXT: .int8 10
45+
; TRAIL1-NEXT: .ascii "multivalue"
46+
; TRAIL1-NEXT: .int8 43
47+
; TRAIL1-NEXT: .int8 15
48+
; TRAIL1-NEXT: .ascii "mutable-globals"
49+
; TRAIL1-NEXT: .int8 43
50+
; TRAIL1-NEXT: .int8 19
51+
; TRAIL1-NEXT: .ascii "nontrapping-fptoint"
52+
; TRAIL1-NEXT: .int8 43
53+
; TRAIL1-NEXT: .int8 8
54+
; TRAIL1-NEXT: .ascii "sign-ext"
55+
3056
; bleeding-edge: +atomics, +bulk-memory, +exception-handling, +extended-const,
3157
; +fp16, +multimemory, +multivalue, +mutable-globals,
3258
; +nontrapping-fptoint, +relaxed-simd, +reference-types,

0 commit comments

Comments
 (0)