Skip to content

Commit cdcb75a

Browse files
committed
Add a target-features-cpus test for trail1.
1 parent f955030 commit cdcb75a

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

@@ -33,6 +34,31 @@ target triple = "wasm32-unknown-unknown"
3334
; GENERIC-NEXT: .int8 8
3435
; GENERIC-NEXT: .ascii "sign-ext"
3536

37+
; trail1: +bulk-memory-opt, +call-indirect-overlong, +extended-const, +multivalue, +mutable-globals, +nontrapping-fptoint, +sign-ext
38+
; TRAIL1-LABEL: .custom_section.target_features,"",@
39+
; TRAIL1-NEXT: .int8 6
40+
; TRAIL1-NEXT: .int8 43
41+
; TRAIL1-NEXT: .int8 15
42+
; TRAIL1-NEXT: .int8 "bulk-memory-opt"
43+
; TRAIL1-NEXT: .int8 43
44+
; TRAIL1-NEXT: .int8 22
45+
; TRAIL1-NEXT: .int8 "call-indirect-overlong"
46+
; TRAIL1-NEXT: .int8 43
47+
; TRAIL1-NEXT: .int8 14
48+
; TRAIL1-NEXT: .ascii "extended-const"
49+
; TRAIL1-NEXT: .int8 43
50+
; TRAIL1-NEXT: .int8 10
51+
; TRAIL1-NEXT: .ascii "multivalue"
52+
; TRAIL1-NEXT: .int8 43
53+
; TRAIL1-NEXT: .int8 15
54+
; TRAIL1-NEXT: .ascii "mutable-globals"
55+
; TRAIL1-NEXT: .int8 43
56+
; TRAIL1-NEXT: .int8 19
57+
; TRAIL1-NEXT: .ascii "nontrapping-fptoint"
58+
; TRAIL1-NEXT: .int8 43
59+
; TRAIL1-NEXT: .int8 8
60+
; TRAIL1-NEXT: .ascii "sign-ext"
61+
3662
; bleeding-edge: +atomics, +bulk-memory, +exception-handling, +extended-const,
3763
; +fp16, +multimemory, +multivalue, +mutable-globals,
3864
; +nontrapping-fptoint, +relaxed-simd, +reference-types,

0 commit comments

Comments
 (0)