]> Cypherpunks.ru repositories - gostls13.git/blob - src/cmd/asm/internal/asm/testdata/riscv64error.s
[dev.fuzz] all: merge master (d137b74) into dev.fuzz
[gostls13.git] / src / cmd / asm / internal / asm / testdata / riscv64error.s
1 // Copyright 2021 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 TEXT errors(SB),$0
6         MOV     $0, 0(SP)                       // ERROR "constant load must target register"
7         MOV     $0, 8(SP)                       // ERROR "constant load must target register"
8         MOV     $1234, 0(SP)                    // ERROR "constant load must target register"
9         MOV     $1234, 8(SP)                    // ERROR "constant load must target register"
10         MOVB    $1, X5                          // ERROR "unsupported constant load"
11         MOVH    $1, X5                          // ERROR "unsupported constant load"
12         MOVW    $1, X5                          // ERROR "unsupported constant load"
13         MOVF    $1, X5                          // ERROR "unsupported constant load"
14         RET