<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56733>56733</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
possible zext-related miscompile with global isel on AArch64
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
regehr
</td>
</tr>
</table>
<pre>
hi folks, we're pretty sure this is a miscompile, since the argument/return register can contain junk in bits 1..7, right?
```
Johns-MacBook-Pro:~ regehr$ cat foo.ll
define i8 @f(i1 %0) {
%2 = zext i1 %0 to i8
ret i8 %2
}
Johns-MacBook-Pro:~ regehr$ ~/llvm-project/for-alive/bin/llc -global-isel foo.ll -o -
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
Johns-MacBook-Pro:~ regehr$
```
cc @ornata @nunoplopes @ryan-berger @nbushehri @aemerson
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNVE1vnDAQ_TXmMgKB-do9cMgm2UOlSj3k0BuyjQE3XhvZJmn66ztmSbdVqyrIMv5482bmzQC3w1s3KxitfvaE3sOrJLR1EhYnQ3gDv-I6zMoDDgYX5YW9LErLiPXKiHgrgblpvUgTCD2j3eoMODkpH6QDwQwIawJTBr6t5hnwzVXwUGRZG1mcmuZAyjPJH0h-t89Nvo9t-8nOxqefmThZ-5x-cZaUd6R9jE7k7Ait0EvAHGym9dVikKMyEtQBSJWPhB5UAYTWOaFHIO3pCoJ4RIGUD_BDfg-wYyBYNHyHYD4bDSL32NqHj0aFO1RE65dLujj7TYoo0GhdyrR6QQnPXJkNICCdtOVMp8pLvWcCqYX0XZVj5tFcWYPLvn96_PqE2vV9wLhxgS5XzdDn_YIF65Xxwa0b3N8I-Kr00L9I5_EcLkzYreIFjXN-w8VIdHQzwn8fUp4gTeGElTYwrmbzB-ONaKGY5xQj3qXrR5To_6S_cW-V-0UmRtX7wFxAJcV-HEG05jzLo_TvUKzYn2bSDDejD7m_Zfdohl-5XQkyv_K9Fr5_Uaz3bxdutf9wU_yrw6-zEDFp6wwLLK7Mauyi7SJ93Lk3ZlIu3YRfVbzkq5-RU8UNkxesqzWJ7IqmPhzquiqKZOjK4VgeWRJU0LJbrPeKa7l1e-qkZkEOv33T8KrCDNdGhK0RsZ53d07MTZWsTndzCIuPCdEzjgnRK8_QeG_yv3tdeb9K7LJz3bRlmczdsWry6ji0pRQjLVkl2oFLwZqi4A1lUiSacal9R-oTodTIV9gocE3qh0R1NKc0b2lTtEWeH7KqOIzjkR7qtmGHGju5yuWFKZ3FODLrpsR1W0h8nTxeavwn-dslQz0mI-XmDvnZGmbrumutks1zt0X-EwzZhMI">