35 lines · plain
1; RUN: llc < %s -mcpu=mvp -mattr=-bulk-memory,atomics | FileCheck %s --check-prefixes NO-BULK-MEM2; RUN: llc < %s -mcpu=mvp -mattr=+bulk-memory,atomics | FileCheck %s --check-prefixes BULK-MEM3 4; Test that the target features section contains -atomics or +atomics5; for modules that have thread local storage in their source.6 7target triple = "wasm32-unknown-unknown"8 9@foo = internal thread_local global i32 010 11; -bulk-memory12; NO-BULK-MEM-LABEL: .custom_section.target_features,"",@13; NO-BULK-MEM-NEXT: .int8 214; NO-BULK-MEM-NEXT: .int8 4315; NO-BULK-MEM-NEXT: .int8 716; NO-BULK-MEM-NEXT: .ascii "atomics"17; NO-BULK-MEM-NEXT: .int8 4518; NO-BULK-MEM-NEXT: .int8 1019; NO-BULK-MEM-NEXT: .ascii "shared-mem"20; NO-BULK-MEM-NEXT: .bss.foo,"",@21 22; +bulk-memory23; BULK-MEM-LABEL: .custom_section.target_features,"",@24; BULK-MEM-NEXT: .int8 325; BULK-MEM-NEXT: .int8 4326; BULK-MEM-NEXT: .int8 727; BULK-MEM-NEXT: .ascii "atomics"28; BULK-MEM-NEXT: .int8 4329; BULK-MEM-NEXT: .int8 1130; BULK-MEM-NEXT: .ascii "bulk-memory"31; BULK-MEM-NEXT: .int8 4332; BULK-MEM-NEXT: .int8 1533; BULK-MEM-NEXT: .ascii "bulk-memory-opt"34; BULK-MEM-NEXT: .tbss.foo,"T",@35