File: windows_arm.ispc

package info (click to toggle)
ispc 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 97,620 kB
  • sloc: cpp: 77,067; python: 8,303; yacc: 3,337; lex: 1,126; ansic: 631; sh: 475; makefile: 17
file content (11 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %{ispc} %s --arch=aarch64  --target-os=windows --target=neon-i32x4 --emit-asm -o - | FileCheck %s --check-prefix=CHECK_ARM

// RUN: not %{ispc} %s --arch=arm --target-os=windows --target=neon-i32x4 --nowrap -o %t.o 2>&1 | FileCheck %s --check-prefix=CHECK_ERROR

// REQUIRES: WINDOWS_ENABLED && ARM_ENABLED

// CHECK_ERROR: Error: arm (32 bit) is not supported on Windows, use aarch64 instead.
float foo(float a, float b) {
// CHECK_ARM: fadd v0.4s
    return a + b;
}