tests/fixedbugs: regression test for issue 100 (#129)

Adds a regression test based on klauspost/compress#186. This necessitated some related changes:

* Mark "RET" as a terminal instruction
* printer refactor to maintain compatibility with asmfmt
* Tweaks to other regression tests to ensure they are run correctly in CI

Updates #100 #65 #8
This commit is contained in:
Michael McLoughlin
2020-01-27 21:05:33 -08:00
committed by GitHub
parent 5a144d9b53
commit e089a6c93c
24 changed files with 11711 additions and 92 deletions

View File

@@ -1,11 +1,4 @@
// +build generate
//go:generate go run $GOFILE
// Regression test for a bug where casting a physical register would give the
// error "non physical register found".
//
// See: https://github.com/mmcloughlin/avo/issues/65#issuecomment-576850145
// +build ignore
package main

View File

@@ -0,0 +1,9 @@
// Package issue65 is a regression test for a bug involving casting physical registers.
//
// Regression test for a bug where casting a physical register would give the
// error "non physical register found".
//
// See: https://github.com/mmcloughlin/avo/issues/65#issuecomment-576850145
package issue65
//go:generate go run asm.go -out issue65.s -stubs stub.go

View File

@@ -0,0 +1,9 @@
// Code generated by command: go run asm.go -out issue65.s -stubs stub.go. DO NOT EDIT.
#include "textflag.h"
// func Issue65()
// Requires: AVX2
TEXT ·Issue65(SB), NOSPLIT, $0
VINSERTI128 $0x01, X0, Y1, Y2
RET

View File

@@ -0,0 +1,5 @@
// Code generated by command: go run asm.go -out issue65.s -stubs stub.go. DO NOT EDIT.
package issue65
func Issue65()