[RISC-V] Avoid unnecessary extensions when value is already extended
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / call-summaries-asm-x86.c
blobcc23283f0f8df3fa383ee4cd8c3ca31ca8a6a53e
1 /* { dg-do compile { target x86_64-*-* } } */
2 /* { dg-additional-options "-fanalyzer-call-summaries --param analyzer-min-snodes-for-call-summary=0" } */
4 #include "analyzer-decls.h"
6 int returns_asm_value (void)
8 int dst;
9 asm ("mov 42, %0"
10 : "=r" (dst));
11 return dst;
14 void test_returns_asm_value (void)
16 int a, b;
17 a = returns_asm_value ();
18 b = returns_asm_value ();
19 __analyzer_eval (a == b); /* { dg-warning "TRUE" } */