diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/Mips/GlobalISel/irtranslator/ret.ll | 11 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/ret.ll | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/GlobalISel/irtranslator/ret.ll b/llvm/test/CodeGen/Mips/GlobalISel/irtranslator/ret.ll new file mode 100644 index 00000000000..a8e710c63c8 --- /dev/null +++ b/llvm/test/CodeGen/Mips/GlobalISel/irtranslator/ret.ll @@ -0,0 +1,11 @@ +; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py +; RUN: llc -O0 -mtriple=mipsel-linux-gnu -global-isel -stop-after=irtranslator -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32 + + +define void @void() { + ; MIPS32-LABEL: name: void + ; MIPS32: bb.1.entry: + ; MIPS32: RetRA +entry: + ret void +} diff --git a/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/ret.ll b/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/ret.ll new file mode 100644 index 00000000000..0c89e15a3d1 --- /dev/null +++ b/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/ret.ll @@ -0,0 +1,12 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc -O0 -mtriple=mipsel-linux-gnu -global-isel -verify-machineinstrs %s -o -| FileCheck %s -check-prefixes=MIPS32 + +define void @void() { +; MIPS32-LABEL: void: +; MIPS32: # %bb.0: # %entry +; MIPS32-NEXT: jr $ra +; MIPS32-NEXT: nop +entry: + ret void +} + |

